Description
The SoundEvent
property represents a sound event asset type within the editor. It is a static property of the Editor.AssetType
class, which means it can be accessed without instantiating the class. This property is used to identify and work with sound event assets in the editor environment.
Usage
To use the SoundEvent
property, you can access it directly from the Editor.AssetType
class. This property is useful when you need to reference or manipulate sound event assets within your editor scripts or tools.
Example
// Accessing the SoundEvent asset type
Editor.AssetType soundEventType = Editor.AssetType.SoundEvent;
// Example usage: Finding a specific sound event asset by name
Editor.AssetType foundAsset = Editor.AssetType.Find("MySoundEvent", true);
if (foundAsset == soundEventType)
{
// Perform operations with the sound event asset
}