docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AnimationJobCacheBuilder

    AnimationJobCacheBuilder can be used to create a new AnimationJobCache object.

    Inheritance
    object
    AnimationJobCacheBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    public class AnimationJobCacheBuilder

    Constructors

    AnimationJobCacheBuilder()

    Constructor.

    Declaration
    public AnimationJobCacheBuilder()

    Methods

    Add(float)

    Adds a float value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(float v)
    Parameters
    Type Name Description
    float v

    Float value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    Add(AffineTransform)

    Adds a AffineTransform value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(AffineTransform tx)
    Parameters
    Type Name Description
    AffineTransform tx

    AffineTransform value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    Add(Quaternion)

    Adds a Quaternion value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(Quaternion v)
    Parameters
    Type Name Description
    Quaternion v

    Quaternion value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    Add(Vector2)

    Adds a Vector2 value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(Vector2 v)
    Parameters
    Type Name Description
    Vector2 v

    Vector2 value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    Add(Vector3)

    Adds a Vector3 value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(Vector3 v)
    Parameters
    Type Name Description
    Vector3 v

    Vector3 value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    Add(Vector4)

    Adds a Vector4 value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(Vector4 v)
    Parameters
    Type Name Description
    Vector4 v

    Vector4 value.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the new value.

    AllocateChunk(int)

    Allocates uninitialized chunk of specified size in the AnimationJobCacheBuilder.

    Declaration
    public CacheIndex AllocateChunk(int size)
    Parameters
    Type Name Description
    int size

    Size of chunk to allocate.

    Returns
    Type Description
    CacheIndex

    CacheIndex that refers to the allocated chunk.

    Build()

    Creates a new AnimationJobCache.

    Declaration
    public AnimationJobCache Build()
    Returns
    Type Description
    AnimationJobCache

    AnimationJobCache object with newly set values.

    SetValue(CacheIndex, int, float)

    Sets value in AnimationJobCacheBuilder at specified index.

    Declaration
    public void SetValue(CacheIndex index, int offset, float value)
    Parameters
    Type Name Description
    CacheIndex index

    CacheIndex value.

    int offset

    Offset to the CacheIndex.

    float value

    float data.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)