Options
All
  • Public
  • Public/Protected
  • All
Menu

An audio clip represents a single audio resource that can play back on one or more AudioSource components.

If only one AudioSource component references the audio clip, you can attach the AudioClip component to the same entity as that AudioSource component.

If multiple AudioSource components reference the audio clip, it's recommended that you add the AudioClip component to a separate entity.

Hierarchy

Index

Constructors

constructor

Properties

source

source: string

The clip's original audio file/URL/name. Unity generates this automatically. Attach an AudioClipLoadFromFile component to load this file into the clip.

status

The audio clip load status. The AudioClipStatus enum defines the possible states.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

  • Parameters

    Returns AudioClip

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc