public static void LoadDefaults(UTBakeOcclusionCullingAction action)
    {
        #if UNITY_3_5 || UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2
        action.viewCellSize.UseExpression = false;
        action.viewCellSize.Value = 1f;

        action.nearClipPane.UseExpression  = false;
        action.nearClipPane.Value  = 0.3f;

        action.farClipPane.UseExpression  = false;
        action.farClipPane.Value  = 1000f;

        action.memoryLimit.UseExpression  = false;
        action.memoryLimit.Value  = 10000000;
        #else
        action.smallestOccluder.UseExpression = false;
        action.smallestOccluder.Value = 5f;

        action.smallestHole.UseExpression = false;
        action.smallestHole.Value = 0.25f;

        action.backfaceThreshold.UseExpression = false;
        action.backfaceThreshold.Value = 100f;

        #endif
    }
    public static void LoadDefaults(UTBakeOcclusionCullingAction action)
    {
#if UNITY_3_5 || UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2
        action.viewCellSize.UseExpression = false;
        action.viewCellSize.Value         = 1f;

        action.nearClipPane.UseExpression = false;
        action.nearClipPane.Value         = 0.3f;

        action.farClipPane.UseExpression = false;
        action.farClipPane.Value         = 1000f;

        action.memoryLimit.UseExpression = false;
        action.memoryLimit.Value         = 10000000;
#else
        action.smallestOccluder.UseExpression = false;
        action.smallestOccluder.Value         = 5f;

        action.smallestHole.UseExpression = false;
        action.smallestHole.Value         = 0.25f;

        action.backfaceThreshold.UseExpression = false;
        action.backfaceThreshold.Value         = 100f;
#endif
    }
    private void LoadDefaults()
    {
        var action = (UTBakeOcclusionCullingAction)target;

        CUUndoUtility.RegisterUndo(action, "Load default occlusion culling settings");
        UTBakeOcclusionCullingAction.LoadDefaults(action);
        EditorUtility.SetDirty(action);
    }