docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MaterialType

    Determine which IStreamingMaterial the StreamingMaterialFactory should instantiate.

    Implements
    IEquatable<MaterialType>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public readonly struct MaterialType : IEquatable<MaterialType>

    Fields

    AlphaMode

    Determine if the material is opaque, alpha tested, or transparent

    Declaration
    public readonly MaterialAlphaMode AlphaMode
    Field Value
    Type Description
    MaterialAlphaMode

    Lighting

    Determine if the material is lit or unlit

    Declaration
    public readonly MaterialLighting Lighting
    Field Value
    Type Description
    MaterialLighting

    Methods

    Equals(object)

    Get if this instance is the same as the given obj.

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

    Compare with this instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(MaterialType)

    Get if two MaterialType represent the same.

    Declaration
    public bool Equals(MaterialType obj)
    Parameters
    Type Name Description
    MaterialType obj

    Compare with this instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    GetHashCode()

    Compute a hash code for the object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    ValueType.GetHashCode()
    Remarks
    • You should not assume that equal hash codes imply object equality.
    • You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)