Struct IntProperty | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct IntProperty

    Integer property handle used to read and write values in the AnimationStream.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    public struct IntProperty : IAnimatableProperty<int>

    Fields

    value

    The PropertyStreamHandle used in the AnimationStream.

    Declaration
    public PropertyStreamHandle value
    Field Value
    Type Description
    PropertyStreamHandle

    Methods

    Bind(Animator, Component, String)

    Creates a IntProperty handle representing a property binding on a Component.

    Declaration
    public static IntProperty Bind(Animator animator, Component component, string name)
    Parameters
    Type Name Description
    Animator animator

    The Animator on which to bind the new handle.

    Component component

    The Component owning the parameter.

    String name

    The property name

    Returns
    Type Description
    IntProperty

    Returns a IntProperty handle that represents the new binding.

    BindCustom(Animator, String)

    Creates a IntProperty handle for a custom property in the AnimationStream to pass extra data to downstream animation jobs in the graph.

    Declaration
    public static IntProperty BindCustom(Animator animator, string property)
    Parameters
    Type Name Description
    Animator animator

    The Animator on which to bind the new handle.

    String property

    The name of the property.

    Returns
    Type Description
    IntProperty

    Returns a IntProperty handle that represents the new binding.

    Get(AnimationStream)

    Gets the property value from a stream.

    Declaration
    public int Get(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The AnimationStream that holds the animated values.

    Returns
    Type Description
    Int32

    The integer property value.

    Implements
    IAnimatableProperty<T>.Get(AnimationStream)

    Set(AnimationStream, Int32)

    Sets the property value into a stream.

    Declaration
    public void Set(AnimationStream stream, int v)
    Parameters
    Type Name Description
    AnimationStream stream

    The AnimationStream that holds the animated values.

    Int32 v

    The new integer property value.

    Implements
    IAnimatableProperty<T>.Set(AnimationStream, T)
    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