コード例 #1
0
 void TryExecuteCommandBuffer <T>(BasePostEffect component, CameraEvent evt)
 {
     if (component.active)
     {
         var cb = GetCommandBuffer <T>(evt, component.GetName());
         cb.Clear();
         component.PopulateCommandBuffer(cb);
     }
     else
     {
         RemoveCommandBuffer <T>();
     }
 }