docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialProperty<T>

    A generic base class for overriding material property in MaterialSwitchClip

    Inheritance
    Object
    MaterialSwitchProperty
    MaterialProperty<T>
    ColorProperty
    FloatProperty
    TextureProperty
    VectorProperty
    Inherited Members
    MaterialSwitchProperty.IsOverridden()
    MaterialSwitchProperty.GetPropertyName()
    Namespace: Unity.MaterialSwitch
    Syntax
    [Serializable]
    public abstract class MaterialProperty<T> : MaterialSwitchProperty
    Type Parameters
    Name Description
    T

    Methods

    GetTargetValue()

    Get the value to be used for overriding a property.

    Declaration
    public T GetTargetValue()
    Returns
    Type Description
    T

    The value for overriding a property.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023