Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


allowInstancing

Allows the visual effect to be batched with others of the same type.
Read time 1 minuteLast updated 7 days ago

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.