docs.unity.cn
    Show / Hide Table of Contents

    Class ObjectParameter<T>

    A VolumeParameter that holds a serializable class or struct.

    Inheritance
    Object
    VolumeParameter
    VolumeParameter<T>
    ObjectParameter<T>
    Inherited Members
    VolumeParameter<T>.m_Value
    VolumeParameter<T>.Interp(T, T, Single)
    VolumeParameter<T>.Override(T)
    VolumeParameter<T>.SetValue(VolumeParameter)
    VolumeParameter<T>.GetHashCode()
    VolumeParameter<T>.ToString()
    VolumeParameter<T>.Equals(VolumeParameter<T>)
    VolumeParameter<T>.Equals(Object)
    VolumeParameter<T>.Clone()
    VolumeParameter.k_DebuggerDisplay
    VolumeParameter.m_OverrideState
    VolumeParameter.GetValue<T>()
    VolumeParameter.OnEnable()
    VolumeParameter.OnDisable()
    VolumeParameter.IsObjectParameter(Type)
    VolumeParameter.Release()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class ObjectParameter<T> : VolumeParameter<T>, ICloneable, IEquatable<VolumeParameter<T>>
    Type Parameters
    Name Description
    T

    The type of serializable object or struct to hold in this parameter.

    Constructors

    ObjectParameter(T)

    Creates a new ObjectParameter<T> instance.

    Declaration
    public ObjectParameter(T value)
    Parameters
    Type Name Description
    T value

    The initial value to store in the parameter.

    Properties

    overrideState

    The current override state for this parameter. Note that this is always forced enabled on ObjectParameter<T>.

    Declaration
    public sealed override bool overrideState { get; set; }
    Property Value
    Type Description
    Boolean
    Overrides
    VolumeParameter.overrideState

    value

    The value stored by this parameter.

    Declaration
    public sealed override T value { get; set; }
    Property Value
    Type Description
    T
    Overrides
    UnityEngine.Rendering.VolumeParameter<T>.value

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023