Exemple #1
0
 /// <summary>
 /// Remove the CommandBuffer on disable to disable the effect
 /// </summary>
 private void OnDisable()
 {
     Instance = null;
     ReleaseAll();
 }
Exemple #2
0
 /// <summary>
 /// Install the command buffer on enable
 /// </summary>
 private void OnEnable()
 {
     Instance = this;
     RebuildCommandBuffer();
 }