add info |
989onan bot (talk | contribs) Automated: update SyncDelegates |
||
Line 14: | Line 14: | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|AssignFromBipedRig()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data>| Finds a biped rig Component above this component and uses the found Finger bones to fill <code>Bones</code>. | |AssignFromBipedRig(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data> -> [[Type:Void|Void]] : HIDDEN METHOD| Finds a biped rig Component above this component and uses the found Finger bones to fill <code>Bones</code>. | ||
|CaptureReference()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData, [[Type: | |CaptureReference(IButton, ButtonEventData, ReferenceField<IFingerPoseSourceComponent>)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData, [[Component:ReferenceField`1|ReferenceField`1]]<[[Type:IFingerPoseSourceComponent|IFingerPoseSourceComponent]]>: field> -> [[Type:Void|Void]] : HIDDEN METHOD| Captures the data from the specified [[Type:IFingerPoseSource|IFingerPoseSource]] and sets this component's data with it. | ||
|CaptureMyLeftHand()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data>| Captures the data from the Left hand of the user that pressed the button and sets this component's data with it. | |CaptureMyLeftHand(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data> -> [[Type:Void|Void]] : HIDDEN METHOD| Captures the data from the Left hand of the user that pressed the button and sets this component's data with it. | ||
|CaptureMyRightHand()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data>| Captures the data from the right hand of the user that pressed the button and sets this component's data with it. | |CaptureMyRightHand(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: data> -> [[Type:Void|Void]] : HIDDEN METHOD| Captures the data from the right hand of the user that pressed the button and sets this component's data with it. | ||
|GenerateDebugVisual()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| Generates a Debug visual and Assigns its bones to any item in <code>Bones</code> that are missing slots and adds any finger segments that are missing entries in <code>Bones</code> | |GenerateDebugVisual(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Generates a Debug visual and Assigns its bones to any item in <code>Bones</code> that are missing slots and adds any finger segments that are missing entries in <code>Bones</code> | ||
|ClearDebugVisual()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| Clears the debug visuals of the hand. (WARNING: visuals may be Referenced by <code>Bones</code> | |ClearDebugVisual(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Clears the debug visuals of the hand. (WARNING: visuals may be Referenced by <code>Bones</code> | ||
|GenerateStaticFingerPoseCode()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| Generates C# code for making a static Pose. Possibly was added by [[User:Frooxius|Frooxius]] as a way to make code for the poses like fist and point in the defaults quickly. | |GenerateStaticFingerPoseCode(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Generates C# code for making a static Pose. Possibly was added by [[User:Frooxius|Frooxius]] as a way to make code for the poses like fist and point in the defaults quickly. | ||
}} | }} | ||
Revision as of 22:29, 16 March 2025
The FingerReferencePoseSource component is used to read and generate Pose data from the user or its already created bone hiearchy Template. The Slots used in the Bones
list need to not be null. Every time the Pose data is read from this component as a Finger Pose Source, the current positions and rotations of the slots in Bones
are used. This component in itself is a IFingerPoseSourceComponent.
For more information on finger pose sources, please see Finger Posing System.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
Bones
|
direct SyncRefDictionary`2<BodyNode, Slot> | A list of bones mapped to Fingers to use as the Finger pose source data for this component. The Fingers need to be in the default hand structure. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|
Usage
Attach to a slot and use either the generate visuals button or assign from biped rig to make a reference armature. Then, it can either be set from the current hand pose of the user (useful for Index Controller users) or can be adjusted manually. The component can then be used as a IFingerPoseSourceComponent.