logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct MaterialId

    Stable identifier for material targets in the procedural animation system. Engine-agnostic: does NOT contain Renderer or Material references. Immutable value object that supports equality comparison and hashing. Analogous to BoneId for rig bones.

    Implements
    IEquatable<MaterialId>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.ProceduralExpression.Domain.ValueObjects
    Assembly: Serenity.ProceduralExpression.Domain.dll
    Syntax
    public readonly struct MaterialId : IEquatable<MaterialId>

    Constructors

    MaterialId(string)

    Creates a new MaterialId with the specified identifier.

    Declaration
    public MaterialId(string value)
    Parameters
    Type Name Description
    string value

    The unique string identifier for the material target. Cannot be null.

    Fields

    Value

    The unique string identifier for this material target.

    Declaration
    public readonly string Value
    Field Value
    Type Description
    string

    Properties

    IsValid

    Checks if this MaterialId has a valid, non-empty value.

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

    Methods

    Equals(MaterialId)

    Declaration
    public bool Equals(MaterialId other)
    Parameters
    Type Name Description
    MaterialId other
    Returns
    Type Description
    bool

    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()

    Operators

    operator ==(MaterialId, MaterialId)

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

    explicit operator MaterialId(string)

    Declaration
    public static explicit operator MaterialId(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    MaterialId

    implicit operator string(MaterialId)

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

    operator !=(MaterialId, MaterialId)

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

    Implements

    IEquatable<T>
    In this article
    © 2026 Serenity. All Rights Reserved