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