docs.unity.cn
    Show / Hide Table of Contents

    Class LensDistortion

    Inheritance
    Object
    VolumeComponent
    LensDistortion
    Inherited Members
    VolumeComponent.active
    VolumeComponent.OnEnable()
    VolumeComponent.OnDisable()
    VolumeComponent.Override(VolumeComponent, Single)
    VolumeComponent.SetAllOverridesTo(Boolean)
    VolumeComponent.GetHashCode()
    VolumeComponent.OnDestroy()
    VolumeComponent.Release()
    VolumeComponent.displayName
    VolumeComponent.parameters
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    [Serializable]
    public sealed class LensDistortion : VolumeComponent, IPostProcessComponent

    Fields

    center

    Declaration
    [Tooltip("Distortion center point.")]
    public Vector2Parameter center
    Field Value
    Type Description
    Vector2Parameter

    intensity

    Declaration
    [Tooltip("Total distortion amount.")]
    public ClampedFloatParameter intensity
    Field Value
    Type Description
    ClampedFloatParameter

    scale

    Declaration
    [Tooltip("Global screen scaling.")]
    public ClampedFloatParameter scale
    Field Value
    Type Description
    ClampedFloatParameter

    xMultiplier

    Declaration
    [Tooltip("Intensity multiplier on X axis. Set it to 0 to disable distortion on this axis.")]
    public ClampedFloatParameter xMultiplier
    Field Value
    Type Description
    ClampedFloatParameter

    yMultiplier

    Declaration
    [Tooltip("Intensity multiplier on Y axis. Set it to 0 to disable distortion on this axis.")]
    public ClampedFloatParameter yMultiplier
    Field Value
    Type Description
    ClampedFloatParameter

    Methods

    IsActive()

    Declaration
    public bool IsActive()
    Returns
    Type Description
    Boolean
    Implements
    IPostProcessComponent.IsActive()

    IsTileCompatible()

    Declaration
    public bool IsTileCompatible()
    Returns
    Type Description
    Boolean
    Implements
    IPostProcessComponent.IsTileCompatible()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 02 March 2021