文档

Unity Engine

Unity Engine

AllocateCustomDataAttribute(ParticleSystemCustomData)

Ensures that the customData1 and customData2 particle attribute arrays are allocated.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public void AllocateCustomDataAttribute(ParticleSystemCustomData stream)

Parameters

The custom data stream to allocate.

Remarks

This is important if you want to use either of these attributes in a job, such as IJobParticleSystem.