docs.unity3d.com
    目次を表示する/隠す

    Class RigConstraint<TJob, TData, TBinder>

    This is the base class for rig constraints. Inherit from this class to implement custom constraints.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    RigConstraint<TJob, TData, TBinder>
    BlendConstraint
    ChainIKConstraint
    DampedTransform
    MultiAimConstraint
    MultiParentConstraint
    MultiPositionConstraint
    MultiReferentialConstraint
    MultiRotationConstraint
    OverrideTransform
    TwistChainConstraint
    TwistCorrection
    TwoBoneIKConstraint
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEngine.Animations.Rigging
    Syntax
    public class RigConstraint<TJob, TData, TBinder> : MonoBehaviour, IRigConstraint where TJob : struct, IWeightedAnimationJob where TData : struct, IAnimationJobData where TBinder : AnimationJobBinder<TJob, TData>, new()
    Type Parameters
    Name Description
    TJob

    The constraint job

    TData

    The constraint data

    TBinder

    The constraint job binder

    Fields

    m_Data

    The constraint data.

    Declaration
    [SerializeField]
    protected TData m_Data
    Field Value
    Type Description
    TData

    m_Weight

    The constraint weight parameter.

    Declaration
    [SerializeField]
    [Range(0F, 1F)]
    protected float m_Weight
    Field Value
    Type Description
    Single

    Properties

    data

    The data container for the constraint.

    Declaration
    public ref TData data { get; }
    Property Value
    Type Description
    TData

    weight

    The constraint weight. This is a value in between 0 and 1.

    Declaration
    public float weight { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IRigConstraint.weight

    Methods

    CreateJob(Animator)

    Creates the animation job for this constraint.

    Declaration
    public IAnimationJob CreateJob(Animator animator)
    Parameters
    Type Name Description
    Animator animator

    The animated hierarchy Animator component

    Returns
    Type Description
    IAnimationJob

    Returns the newly instantiated job.

    Implements
    IRigConstraint.CreateJob(Animator)

    DestroyJob(IAnimationJob)

    Frees the specified job memory.

    Declaration
    public void DestroyJob(IAnimationJob job)
    Parameters
    Type Name Description
    IAnimationJob job

    The job to destroy.

    Implements
    IRigConstraint.DestroyJob(IAnimationJob)

    IsValid()

    Retrieves the constraint valid state.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    Boolean

    Returns true if constraint data can be successfully evaluated. Returns false otherwise.

    Implements
    IRigConstraint.IsValid()

    OnValidate()

    This function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only). You can use this to ensure that when you modify data in an editor, that data stays within a certain range.

    Declaration
    protected virtual void OnValidate()

    Reset()

    Resets constraint data to default values.

    Declaration
    public void Reset()

    UpdateJob(IAnimationJob)

    Updates the specified job data.

    Declaration
    public void UpdateJob(IAnimationJob job)
    Parameters
    Type Name Description
    IAnimationJob job

    The job to update.

    Implements
    IRigConstraint.UpdateJob(IAnimationJob)

    Explicit Interface Implementations

    IRigConstraint.binder

    The job binder for the constraint.

    Declaration
    IAnimationJobBinder IRigConstraint.binder { get; }
    Returns
    Type Description
    IAnimationJobBinder
    Implements
    IRigConstraint.binder

    IRigConstraint.component

    The component for the constraint.

    Declaration
    Component IRigConstraint.component { get; }
    Returns
    Type Description
    Component
    Implements
    IRigConstraint.component

    IRigConstraint.data

    The data container for the constraint.

    Declaration
    IAnimationJobData IRigConstraint.data { get; }
    Returns
    Type Description
    IAnimationJobData
    Implements
    IRigConstraint.data
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)