docs.unity.cn
    Show / Hide Table of Contents

    Class CloudSettings

    Base class for custom Cloud Settings.

    Inheritance
    Object
    VolumeComponent
    CloudSettings
    CloudLayer
    Inherited Members
    VolumeComponent.active
    VolumeComponent.OnEnable()
    VolumeComponent.OnDisable()
    VolumeComponent.Override(VolumeComponent, Single)
    VolumeComponent.SetAllOverridesTo(Boolean)
    VolumeComponent.GetHashCode()
    VolumeComponent.AnyPropertiesIsOverridden()
    VolumeComponent.OnDestroy()
    VolumeComponent.Release()
    UnityEngine.Rendering.VolumeComponent.TryGetRevertMethodForFieldName(UnityEditor.SerializedProperty, System.Action<UnityEditor.SerializedProperty>)
    UnityEngine.Rendering.VolumeComponent.GetSourceTerm()
    UnityEngine.Rendering.VolumeComponent.TryGetApplyMethodForFieldName(UnityEditor.SerializedProperty, System.Action<UnityEditor.SerializedProperty>)
    UnityEngine.Rendering.VolumeComponent.GetSourceName(UnityEngine.Component)
    VolumeComponent.displayName
    VolumeComponent.parameters
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public abstract class CloudSettings : VolumeComponent, IApplyRevertPropertyContextMenuItemProvider

    Methods

    GetCloudRendererType()

    Returns the class type of the CloudRenderer associated with this Cloud Settings.

    Declaration
    public abstract Type GetCloudRendererType()
    Returns
    Type Description
    Type

    The class type of the CloudRenderer associated with this Cloud Settings.

    GetHashCode(Camera)

    Returns the hash code of the cloud parameters.

    Declaration
    public virtual int GetHashCode(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera we want to use to compute the hash of the cloud.

    Returns
    Type Description
    Int32

    The hash code of the cloud parameters.

    GetUniqueID(Type)

    Returns the cloud type unique ID. Use this to override the cloudType in the Visual Environment volume component.

    Declaration
    public static int GetUniqueID(Type type)
    Parameters
    Type Name Description
    Type type

    Type of clouds.

    Returns
    Type Description
    Int32

    The unique ID for the requested cloud type.

    GetUniqueID<T>()

    Returns the cloud type unique ID. Use this to override the cloudType in the Visual Environment volume component.

    Declaration
    public static int GetUniqueID<T>()
    Returns
    Type Description
    Int32

    The unique ID for the requested cloud type.

    Type Parameters
    Name Description
    T

    Type of clouds.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 21 July 2023