protected override void OnEnable() { base.OnEnable(); DynamicOcclusion.EditorLoadPrefs(); layerMask = FindProperty((DynamicOcclusion x) => x.layerMask); minOccluderArea = FindProperty((DynamicOcclusion x) => x.minOccluderArea); planeAlignment = FindProperty((DynamicOcclusion x) => x.planeAlignment); planeOffset = FindProperty((DynamicOcclusion x) => x.planeOffset); waitFrameCount = FindProperty((DynamicOcclusion x) => x.waitFrameCount); }
protected override void OnEnable() { base.OnEnable(); DynamicOcclusion.EditorLoadPrefs(); dimensions = FindProperty((DynamicOcclusion x) => x.dimensions); layerMask = FindProperty((DynamicOcclusion x) => x.layerMask); considerTriggers = FindProperty((DynamicOcclusion x) => x.considerTriggers); minOccluderArea = FindProperty((DynamicOcclusion x) => x.minOccluderArea); planeAlignment = FindProperty((DynamicOcclusion x) => x.planeAlignment); planeOffset = FindProperty((DynamicOcclusion x) => x.planeOffset); waitFrameCount = FindProperty((DynamicOcclusion x) => x.waitFrameCount); minSurfaceRatio = FindProperty((DynamicOcclusion x) => x.minSurfaceRatio); maxSurfaceDot = FindProperty((DynamicOcclusion x) => x.maxSurfaceDot); }