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

    Class IntegerCurve

    A type of ICurve that stores keyframes of type int.

    Inheritance
    Object
    IntegerCurve
    Namespace: Unity.LiveCapture
    Syntax
    public class IntegerCurve : ICurve<int>, ICurve

    Constructors

    IntegerCurve(String, String, Type)

    Creates a new IntegerCurve instance.

    Declaration
    public IntegerCurve(string relativePath, string propertyName, Type bindingType)
    Parameters
    Type Name Description
    String relativePath

    The path of the game object this curve applies to, relative to the game object the actor component is attached to.

    String propertyName

    The name or path to the property that is animated.

    Type bindingType

    The type of component this curve is applied to.

    Properties

    BindingType

    The type of the property to be animated.

    Declaration
    public Type BindingType { get; }
    Property Value
    Type Description
    Type
    Implements
    ICurve.BindingType

    FrameRate

    The sampling rate in Hz.

    Declaration
    public FrameRate FrameRate { get; set; }
    Property Value
    Type Description
    FrameRate
    Implements
    ICurve.FrameRate

    PropertyName

    The name of the property to be animated.

    Declaration
    public string PropertyName { get; }
    Property Value
    Type Description
    String
    Implements
    ICurve.PropertyName

    RelativePath

    The transform path of the object that is animated.

    Declaration
    public string RelativePath { get; }
    Property Value
    Type Description
    String
    Implements
    ICurve.RelativePath

    Methods

    AddKey(Double, Int32)

    Adds a keyframe to the curve.

    Declaration
    public void AddKey(double time, int value)
    Parameters
    Type Name Description
    Double time

    The time in seconds to insert the keyframe at.

    Int32 value
    Implements
    ICurve<T>.AddKey(Double, T)

    Clear()

    Clears the keyframes from the curve.

    Declaration
    public void Clear()
    Implements
    ICurve.Clear()

    IsEmpty()

    Checks if the animation curve contains keyframes.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    Boolean

    true if the curve contains no keyframes; otherwise, false.

    Implements
    ICurve.IsEmpty()

    SetToAnimationClip(AnimationClip)

    Sets the curve to the given animation clip.

    Declaration
    public void SetToAnimationClip(AnimationClip clip)
    Parameters
    Type Name Description
    AnimationClip clip

    The animation clip to set the curve to.

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