Search Results for

    Show / Hide Table of Contents

    Class TrackLayer

    Represents a single layer of a music track. Each layer can be triggered and controlled independently based on game events or conditions.

    Inheritance
    object
    TrackLayer
    Namespace: Music
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class TrackLayer

    Fields

    enableTrigger

    The trigger condition for enabling this layer.

    Declaration
    public TrackLayer.EnableTrigger enableTrigger
    Field Value
    Type Description
    TrackLayer.EnableTrigger

    layerName

    The name of the music layer.

    Declaration
    public string layerName
    Field Value
    Type Description
    string

    layerScenes

    A list of scenes where this layer is active. If empty, the layer is active in all scenes.

    Declaration
    public List<string> layerScenes
    Field Value
    Type Description
    List<><string>

    layerTrack

    The audio clip associated with this music layer.

    Declaration
    public AudioClip layerTrack
    Field Value
    Type Description
    AudioClip

    triggerName

    The name of the object that triggers this layer.

    Declaration
    public string triggerName
    Field Value
    Type Description
    string
    In This Article
    Back to top Example Unity documentation footer