Struct WeightedTransformArray | Animation Rigging | 0.3.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct WeightedTransformArray

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [Serializable]
    public struct WeightedTransformArray : IList<WeightedTransform>, ICollection<WeightedTransform>, IEnumerable<WeightedTransform>, IList, ICollection, IEnumerable

    Constructors

    WeightedTransformArray(Int32)

    Declaration
    public WeightedTransformArray(int size)
    Parameters
    Type Name Description
    Int32 size

    Fields

    k_MaxLength

    Declaration
    public static readonly int k_MaxLength
    Field Value
    Type Description
    Int32

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    IsFixedSize

    Declaration
    public bool IsFixedSize { get; }
    Property Value
    Type Description
    Boolean

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    Boolean

    Item[Int32]

    Declaration
    public WeightedTransform this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    WeightedTransform

    Methods

    Add(WeightedTransform)

    Declaration
    public void Add(WeightedTransform value)
    Parameters
    Type Name Description
    WeightedTransform value

    Clear()

    Declaration
    public void Clear()

    Contains(WeightedTransform)

    Declaration
    public bool Contains(WeightedTransform value)
    Parameters
    Type Name Description
    WeightedTransform value
    Returns
    Type Description
    Boolean

    CopyTo(WeightedTransform[], Int32)

    Declaration
    public void CopyTo(WeightedTransform[] array, int arrayIndex)
    Parameters
    Type Name Description
    WeightedTransform[] array
    Int32 arrayIndex

    GetEnumerator()

    Declaration
    public IEnumerator<WeightedTransform> GetEnumerator()
    Returns
    Type Description
    IEnumerator<WeightedTransform>

    GetTransform(Int32)

    Declaration
    public Transform GetTransform(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Transform

    GetWeight(Int32)

    Declaration
    public float GetWeight(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Single

    IndexOf(WeightedTransform)

    Declaration
    public int IndexOf(WeightedTransform value)
    Parameters
    Type Name Description
    WeightedTransform value
    Returns
    Type Description
    Int32

    Insert(Int32, WeightedTransform)

    Declaration
    public void Insert(int index, WeightedTransform value)
    Parameters
    Type Name Description
    Int32 index
    WeightedTransform value

    Remove(WeightedTransform)

    Declaration
    public bool Remove(WeightedTransform value)
    Parameters
    Type Name Description
    WeightedTransform value
    Returns
    Type Description
    Boolean

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index

    SetTransform(Int32, Transform)

    Declaration
    public void SetTransform(int index, Transform transform)
    Parameters
    Type Name Description
    Int32 index
    Transform transform

    SetWeight(Int32, Single)

    Declaration
    public void SetWeight(int index, float weight)
    Parameters
    Type Name Description
    Int32 index
    Single weight
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023