Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#
Removed in version 2018.2.21

Component.particleSystem

Obsolete public Component particleSystem;

Description

The ParticleSystem attached to this GameObject. (Null if there is none attached).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<ParticleSystem>().Emit(5); } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答