Description
The ParticleSystem
property represents the asset type for Particle System files, which have the .vpcf
extension. This property is part of the Editor.AssetType
class and is used to identify and work with particle system assets within the editor environment.
Usage
Use the ParticleSystem
property to access the asset type for particle systems when you need to perform operations such as loading, categorizing, or filtering assets in the editor. This property is static and can be accessed directly from the Editor.AssetType
class.
Example
// Example of using the ParticleSystem asset type
var particleSystemType = Editor.AssetType.ParticleSystem;
// Use the asset type to find a specific particle system asset
var myParticleSystem = Editor.AssetType.Find("my_particle_system", true);
// Check if the asset type is a game resource
bool isGameResource = particleSystemType.IsGameResource;
// Get the friendly name for UI purposes
string friendlyName = particleSystemType.FriendlyName;