Ejemplo n.º 1
0
 public void OnAfterDeserialize()
 {
     if (version <= 1)
     {
         m_RequiresDepthTextureOption  = (m_RequiresDepthTexture) ? CameraOverrideOption.On : CameraOverrideOption.Off;
         m_RequiresOpaqueTextureOption = (m_RequiresColorTexture) ? CameraOverrideOption.On : CameraOverrideOption.Off;
     }
 }
Ejemplo n.º 2
0
 public static bool IsEnabled(this CameraOverrideOption _override, bool _default) => _override == CameraOverrideOption.On || (_override == CameraOverrideOption.UsePipelineSettings && _default);