logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct BoneIdRef

    Serializable reference to a bone ID for use in Unity Inspector. Provides type-safe bone selection with dropdown support via custom PropertyDrawer.

    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.ProceduralExpression.Infrastructure.Settings
    Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
    Syntax
    public struct BoneIdRef

    Constructors

    BoneIdRef(string)

    Creates a new BoneIdRef with the specified ID.

    Declaration
    public BoneIdRef(string id)
    Parameters
    Type Name Description
    string id

    The bone ID string.

    Properties

    Id

    Gets the bone ID string.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string

    IsValid

    Returns true if the bone ID is valid (non-null and non-empty).

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToBoneId()

    Converts this BoneIdRef to a domain BoneId.

    Declaration
    public BoneId ToBoneId()
    Returns
    Type Description
    BoneId

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(BoneIdRef, BoneIdRef)

    Declaration
    public static bool operator ==(BoneIdRef left, BoneIdRef right)
    Parameters
    Type Name Description
    BoneIdRef left
    BoneIdRef right
    Returns
    Type Description
    bool

    implicit operator BoneId(BoneIdRef)

    Implicit conversion to domain BoneId.

    Declaration
    public static implicit operator BoneId(BoneIdRef boneIdRef)
    Parameters
    Type Name Description
    BoneIdRef boneIdRef
    Returns
    Type Description
    BoneId

    implicit operator string(BoneIdRef)

    Implicit conversion to string.

    Declaration
    public static implicit operator string(BoneIdRef boneIdRef)
    Parameters
    Type Name Description
    BoneIdRef boneIdRef
    Returns
    Type Description
    string

    implicit operator BoneIdRef(string)

    Implicit conversion from string.

    Declaration
    public static implicit operator BoneIdRef(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    BoneIdRef

    operator !=(BoneIdRef, BoneIdRef)

    Declaration
    public static bool operator !=(BoneIdRef left, BoneIdRef right)
    Parameters
    Type Name Description
    BoneIdRef left
    BoneIdRef right
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved