文档

Unity Engine

Unity Engine

allowInstancing

Allows the visual effect to be batched with others of the same type.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine.VFX
  • Assembly: UnityEngine.VFXModule
public bool allowInstancing { get; set; }

Remarks

Instancing feature allows several instances of the same visual effect asset to share the same buffers and be updated together, improving performance. This property allows this visual effect to opt-out when instancing is enabled in the visual effect asset. If this property is set to false, this visual effect will use a batch with just this instance.