Class AnimationJobCacheBuilder | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class AnimationJobCacheBuilder

    AnimationJobCacheBuilder can be used to create a new AnimationJobCache object.

    Inheritance
    Object
    AnimationJobCacheBuilder
    Namespace: UnityEngine.Animations.Rigging
    Syntax
    public class AnimationJobCacheBuilder

    Constructors

    AnimationJobCacheBuilder()

    Constructor.

    Declaration
    public AnimationJobCacheBuilder()

    Methods

    Add(Single)

    Adds a float value to the AnimationJobCache.

    Declaration
    public CacheIndex Add(float v)
    Parameters
    Type Name Description
    Single 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(Int32)

    Allocates uninitialized chunk of specified size in the AnimationJobCacheBuilder.

    Declaration
    public CacheIndex AllocateChunk(int size)
    Parameters
    Type Name Description
    Int32 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, Int32, Single)

    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.

    Int32 offset

    Offset to the CacheIndex.

    Single value

    float data.

    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