Class NoiseSettings | Cinemachine | 2.5.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class NoiseSettings

    This is an asset that defines a noise profile. A noise profile is the shape of the noise signal as a function of time. You can build arbitrarily complex shapes by combining different base perlin noise frequencies at different amplitudes.

    The frequencies and amplitudes should be chosen with care, to ensure an interesting noise quality that is not obviously repetitive.

    As a mathematical side-note, any arbitrary periodic curve can be broken down into a series of fixed-amplitude sine-waves added together. This is called fourier decomposition, and is the basis of much signal processing. It doesn't really have much to do with this asset, but it's super interesting!

    Inheritance
    Object
    Object
    ScriptableObject
    SignalSourceAsset
    NoiseSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Cinemachine
    Syntax
    [DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
    public sealed class NoiseSettings : SignalSourceAsset, ISignalSource6D

    Fields

    OrientationNoise

    The array of orientation noise channels for this NoiseSettings

    Declaration
    [Tooltip("These are the noise channels for the virtual camera's orientation. Convincing noise setups typically mix low, medium and high frequencies together, so start with a size of 3")]
    [FormerlySerializedAs("m_Orientation")]
    public NoiseSettings.TransformNoiseParams[] OrientationNoise
    Field Value
    Type Description
    NoiseSettings.TransformNoiseParams[]

    PositionNoise

    The array of positional noise channels for this NoiseSettings

    Declaration
    [Tooltip("These are the noise channels for the virtual camera's position. Convincing noise setups typically mix low, medium and high frequencies together, so start with a size of 3")]
    [FormerlySerializedAs("m_Position")]
    public NoiseSettings.TransformNoiseParams[] PositionNoise
    Field Value
    Type Description
    NoiseSettings.TransformNoiseParams[]

    Properties

    SignalDuration

    Returns the total length in seconds of the signal.
    Returns 0 for signals of indeterminate length.

    Declaration
    public override float SignalDuration { get; }
    Property Value
    Type Description
    Single
    Overrides
    SignalSourceAsset.SignalDuration

    Methods

    GetCombinedFilterResults(NoiseSettings.TransformNoiseParams[], Single, Vector3)

    Get the noise signal value at a specific time

    Declaration
    public static Vector3 GetCombinedFilterResults(NoiseSettings.TransformNoiseParams[] noiseParams, float time, Vector3 timeOffsets)
    Parameters
    Type Name Description
    NoiseSettings.TransformNoiseParams[] noiseParams

    The parameters that define the noise function

    Single time

    The time at which to sample the noise function

    Vector3 timeOffsets

    Start time offset for each channel

    Returns
    Type Description
    Vector3

    The 3-channel noise signal value at the specified time

    GetSignal(Single, out Vector3, out Quaternion)

    Interface for raw signal provider

    Declaration
    public override void GetSignal(float timeSinceSignalStart, out Vector3 pos, out Quaternion rot)
    Parameters
    Type Name Description
    Single timeSinceSignalStart
    Vector3 pos

    The position impulse signal

    Quaternion rot

    The rotation impulse signal

    Overrides
    SignalSourceAsset.GetSignal(Single, out Vector3, out Quaternion)
    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