docs.unity.cn
    Show / Hide Table of Contents

    Struct PropertyBinding

    Defines how a curve is attached to an object that it controls.

    Namespace: Unity.LiveCapture
    Syntax
    public struct PropertyBinding : IEquatable<PropertyBinding>

    Constructors

    PropertyBinding(String, String, Type)

    Creates a new PropertyBinding instance.

    Declaration
    public PropertyBinding(string relativePath, string propertyName, Type type)
    Parameters
    Type Name Description
    String relativePath

    The path of the GameObject this binding applies to, relative to the root GameObject.

    String propertyName

    The name or path to the property that is animated.

    Type type

    The type of component this binding is applied to.

    Properties

    PropertyName

    The name or path to the property that is animated.

    Declaration
    public string PropertyName { readonly get; }
    Property Value
    Type Description
    String

    RelativePath

    The path of the GameObject this binding applies to, relative to the root GameObject.

    Declaration
    public string RelativePath { readonly get; }
    Property Value
    Type Description
    String

    Type

    The type of component this binding is applied to.

    Declaration
    public Type Type { readonly get; }
    Property Value
    Type Description
    Type

    Methods

    Equals(Object)

    Determines whether the specified object is equal to the current PropertyBinding.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current PropertyBinding.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current PropertyBinding; otherwise, false.

    Overrides
    ValueType.Equals(Object)

    Equals(PropertyBinding)

    Determines whether the PropertyBinding instances are equal.

    Declaration
    public bool Equals(PropertyBinding other)
    Parameters
    Type Name Description
    PropertyBinding other

    The other PropertyBinding to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    GetHashCode()

    Gets the hash code for the PropertyBinding.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash value generated for this PropertyBinding.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(PropertyBinding, PropertyBinding)

    Determines whether the two specified PropertyBinding are equal.

    Declaration
    public static bool operator ==(PropertyBinding a, PropertyBinding b)
    Parameters
    Type Name Description
    PropertyBinding a

    The first PropertyBinding.

    PropertyBinding b

    The second PropertyBinding.

    Returns
    Type Description
    Boolean

    True if the specified PropertyBinding are equal; otherwise, false.

    Inequality(PropertyBinding, PropertyBinding)

    Determines whether the two specified PropertyBinding are different.

    Declaration
    public static bool operator !=(PropertyBinding a, PropertyBinding b)
    Parameters
    Type Name Description
    PropertyBinding a

    The first PropertyBinding.

    PropertyBinding b

    The second PropertyBinding.

    Returns
    Type Description
    Boolean

    True if the specified PropertyBinding are different; otherwise, false.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 17, 2023