Class CinemachineBasicMultiChannelPerlin | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CinemachineBasicMultiChannelPerlin

    As a part of the Cinemachine Pipeline implementing the Noise stage, this component adds Perlin Noise to the Camera state, in the Correction channel of the CameraState.

    The noise is created by using a predefined noise profile asset. This defines the shape of the noise over time. You can scale this in amplitude or in time, to produce a large family of different noises using the same profile.

    Inheritance
    MonoBehaviour
    CinemachineComponentBase
    CinemachineBasicMultiChannelPerlin
    Inherited Members
    CinemachineComponentBase.Epsilon
    CinemachineComponentBase.VirtualCamera
    CinemachineComponentBase.FollowTarget
    CinemachineComponentBase.LookAtTarget
    CinemachineComponentBase.FollowTargetPosition
    CinemachineComponentBase.FollowTargetRotation
    CinemachineComponentBase.LookAtTargetPosition
    CinemachineComponentBase.LookAtTargetRotation
    CinemachineComponentBase.VcamState
    CinemachineComponentBase.PrePipelineMutateCameraState(CameraState)
    CinemachineComponentBase.OnTargetObjectWarped(Transform, Vector3)
    Namespace: Cinemachine
    Syntax
    [DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
    public class CinemachineBasicMultiChannelPerlin : CinemachineComponentBase

    Fields

    m_AmplitudeGain

    Gain to apply to the amplitudes defined in the settings asset.

    Declaration
    public float m_AmplitudeGain
    Field Value
    Type Description
    System.Single

    m_FrequencyGain

    Scale factor to apply to the frequencies defined in the settings asset.

    Declaration
    public float m_FrequencyGain
    Field Value
    Type Description
    System.Single

    m_NoiseProfile

    Serialized property for referencing a NoiseSettings asset

    Declaration
    public NoiseSettings m_NoiseProfile
    Field Value
    Type Description
    NoiseSettings

    Properties

    IsValid

    True if the component is valid, i.e. it has a noise definition and is enabled.

    Declaration
    public override bool IsValid { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    CinemachineComponentBase.IsValid

    Stage

    Get the Cinemachine Pipeline stage that this component implements. Always returns the Noise stage

    Declaration
    public override CinemachineCore.Stage Stage { get; }
    Property Value
    Type Description
    CinemachineCore.Stage
    Overrides
    CinemachineComponentBase.Stage

    Methods

    MutateCameraState(ref CameraState, Single)

    Applies noise to the Correction channel of the CameraState if the delta time is greater than 0. Otherwise, does nothing.

    Declaration
    public override void MutateCameraState(ref CameraState curState, float deltaTime)
    Parameters
    Type Name Description
    CameraState curState

    The current camera state

    System.Single deltaTime

    How much to advance the perlin noise generator. Noise is only applied if this value is greater than or equal to 0

    Overrides
    CinemachineComponentBase.MutateCameraState(ref CameraState, Single)

    See Also

    NoiseSettings
    Back to top
    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