文档

Unity Engine

Unity Engine

particleSystem

The ParticleSystem attached to this GameObject. (Null if there is none attached).
阅读时间1 分钟最后更新于 1 天前

Definition

警告
Removed. Property particleSystem has been deprecated. Use GetComponent\<ParticleSystem\>() instead.
public Component particleSystem { get; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { GetComponent<ParticleSystem>().Emit(5); }}