logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct TransformIdRef

    Serializable reference to a transform ID for use in Unity Inspector. Provides type-safe transform target selection with dropdown support via custom PropertyDrawer. Analogous to MaterialIdRef for material targets.

    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 TransformIdRef

    Constructors

    TransformIdRef(string)

    Creates a new TransformIdRef with the specified ID.

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

    The transform ID string.

    Properties

    Id

    Gets the transform ID string.

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

    IsValid

    Returns true if the transform 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()

    ToString()

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

    ToTransformId()

    Converts this TransformIdRef to a domain TransformId.

    Declaration
    public TransformId ToTransformId()
    Returns
    Type Description
    TransformId

    Operators

    operator ==(TransformIdRef, TransformIdRef)

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

    implicit operator TransformId(TransformIdRef)

    Implicit conversion to domain TransformId.

    Declaration
    public static implicit operator TransformId(TransformIdRef transformIdRef)
    Parameters
    Type Name Description
    TransformIdRef transformIdRef
    Returns
    Type Description
    TransformId

    implicit operator string(TransformIdRef)

    Implicit conversion to string.

    Declaration
    public static implicit operator string(TransformIdRef transformIdRef)
    Parameters
    Type Name Description
    TransformIdRef transformIdRef
    Returns
    Type Description
    string

    implicit operator TransformIdRef(string)

    Implicit conversion from string.

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

    operator !=(TransformIdRef, TransformIdRef)

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