docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VolumeProfile

    An Asset which holds a set of settings to use with a Volume.

    Inheritance
    object
    Object
    ScriptableObject
    VolumeProfile
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [CurrentPipelineHelpURL("Volume-Profile")]
    [Icon("Packages/com.unity.render-pipelines.core/Editor/Icons/Processed/VolumeProfile Icon.asset")]
    public sealed class VolumeProfile : ScriptableObject

    Fields

    components

    A list of every setting that this Volume Profile stores.

    Declaration
    public List<VolumeComponent> components
    Field Value
    Type Description
    List<VolumeComponent>

    isDirty

    Note: For Internal Use Only
    A dirty check used to redraw the profile inspector when something has changed. This is currently only used in the editor.

    Declaration
    [NonSerialized]
    public bool isDirty
    Field Value
    Type Description
    bool

    Methods

    Add(Type, bool)

    Adds a VolumeComponent to this Volume Profile.

    Declaration
    public VolumeComponent Add(Type type, bool overrides = false)
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    bool overrides

    Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.

    Returns
    Type Description
    VolumeComponent

    The instance created for the given type that has been added to the profile

    Remarks

    You can only have a single component of the same type per Volume Profile.

    See Also
    Add<T>(bool)

    Add<T>(bool)

    Adds a VolumeComponent to this Volume Profile.

    Declaration
    public T Add<T>(bool overrides = false) where T : VolumeComponent
    Parameters
    Type Name Description
    bool overrides

    Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.

    Returns
    Type Description
    T

    The instance for the given type that you added to the Volume Profile

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    Remarks

    You can only have a single component of the same type per Volume Profile.

    See Also
    Add(Type, bool)

    GetHashCode()

    A custom hashing function that Unity uses to compare the state of parameters.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A computed hash code for the current instance.

    Overrides
    UnityEngine.Object.GetHashCode()

    Has(Type)

    Checks if this Volume Profile contains the VolumeComponent you pass in.

    Declaration
    public bool Has(Type type)
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    Returns
    Type Description
    bool

    true if the VolumeComponent exists in the Volume Profile, false otherwise.

    See Also
    Has<T>()
    HasSubclassOf(Type)

    HasSubclassOf(Type)

    Checks if this Volume Profile contains the VolumeComponent, which is a subclass of type, that you pass in.

    Declaration
    public bool HasSubclassOf(Type type)
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    Returns
    Type Description
    bool

    true if the VolumeComponent exists in the Volume Profile, false otherwise.

    See Also
    Has(Type)
    Has<T>()

    Has<T>()

    Checks if this Volume Profile contains the VolumeComponent you pass in.

    Declaration
    public bool Has<T>() where T : VolumeComponent
    Returns
    Type Description
    bool

    true if the VolumeComponent exists in the Volume Profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    See Also
    Has(Type)
    HasSubclassOf(Type)

    Remove(Type)

    Removes a VolumeComponent from this Volume Profile.

    Declaration
    public void Remove(Type type)
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    Remarks

    This method does nothing if the type does not exist in the Volume Profile.

    See Also
    Remove<T>()

    Remove<T>()

    Removes a VolumeComponent from this Volume Profile.

    Declaration
    public void Remove<T>() where T : VolumeComponent
    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    Remarks

    This method does nothing if the type does not exist in the Volume Profile.

    See Also
    Remove(Type)

    Reset()

    Resets the dirty state of the Volume Profile. Unity uses this to force-refresh and redraw the Volume Profile editor when you modify the Asset via script instead of the Inspector.

    Declaration
    public void Reset()

    TryGetAllSubclassOf<T>(Type, List<T>)

    Gets all the VolumeComponent that are subclasses of the specified type, if there are any.

    Declaration
    public bool TryGetAllSubclassOf<T>(Type type, List<T> result) where T : VolumeComponent
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    List<T> result

    The output list that contains all the VolumeComponent if any. Note that Unity does not clear this list.

    Returns
    Type Description
    bool

    true if any VolumeComponent have been found in the profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    See Also
    TryGet<T>(Type, out T)
    TryGet<T>(out T)
    TryGetSubclassOf<T>(Type, out T)

    TryGetSubclassOf<T>(Type, out T)

    Gets the VolumeComponent, which is a subclass of type, if it exists.

    Declaration
    public bool TryGetSubclassOf<T>(Type type, out T component) where T : VolumeComponent
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    T component

    The output argument that contains the VolumeComponent or null.

    Returns
    Type Description
    bool

    true if the VolumeComponent is in the Volume Profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    See Also
    TryGet<T>(Type, out T)
    TryGet<T>(out T)
    TryGetAllSubclassOf<T>(Type, List<T>)

    TryGet<T>(Type, out T)

    Gets the VolumeComponent of the specified type, if it exists.

    Declaration
    public bool TryGet<T>(Type type, out T component) where T : VolumeComponent
    Parameters
    Type Name Description
    Type type

    A type that inherits from VolumeComponent.

    T component

    The output argument that contains the VolumeComponent or null.

    Returns
    Type Description
    bool

    true if the VolumeComponent is in the Volume Profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent

    See Also
    TryGet<T>(out T)
    TryGetSubclassOf<T>(Type, out T)
    TryGetAllSubclassOf<T>(Type, List<T>)

    TryGet<T>(out T)

    Gets the VolumeComponent of the specified type, if it exists.

    Declaration
    public bool TryGet<T>(out T component) where T : VolumeComponent
    Parameters
    Type Name Description
    T component

    The output argument that contains the VolumeComponent or null.

    Returns
    Type Description
    bool

    true if the VolumeComponent is in the Volume Profile, false otherwise.

    Type Parameters
    Name Description
    T

    A type of VolumeComponent.

    See Also
    TryGet<T>(Type, out T)
    TryGetSubclassOf<T>(Type, out T)
    TryGetAllSubclassOf<T>(Type, List<T>)

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 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)