Description
The Target
property of the ParticleModelEmitter
class specifies the GameObject
that the particles will be emitted towards or from. This property is crucial for defining the spatial context in which the particle effects are rendered, allowing for dynamic and interactive visual effects within the scene.
Usage
To use the Target
property, assign it a GameObject
instance that represents the desired target for the particle emission. This can be any object within the scene that you want the particles to interact with or originate from.
Example
// Example of setting the Target property for a ParticleModelEmitter
ParticleModelEmitter emitter = new ParticleModelEmitter();
GameObject targetObject = new GameObject();
emitter.Target = targetObject;
// Now, the particles will be emitted towards or from the targetObject.