コード例 #1
0
        internal SerializedProbeSettings(SerializedProperty root)
        {
            this.root = root;

            type                                 = root.Find((ProbeSettings p) => p.type);
            mode                                 = root.Find((ProbeSettings p) => p.mode);
            realtimeMode                         = root.Find((ProbeSettings p) => p.realtimeMode);
            lightingMultiplier                   = root.FindPropertyRelative("lighting.multiplier");
            lightingWeight                       = root.FindPropertyRelative("lighting.weight");
            lightingFadeDistance                 = root.FindPropertyRelative("lighting.fadeDistance");
            lightingLightLayer                   = root.FindPropertyRelative("lighting.lightLayer");
            lightingRangeCompressionFactor       = root.FindPropertyRelative("lighting.rangeCompressionFactor");
            proxyUseInfluenceVolumeAsProxyVolume = root.FindPropertyRelative("proxySettings.useInfluenceVolumeAsProxyVolume");
            proxyCapturePositionProxySpace       = root.FindPropertyRelative("proxySettings.capturePositionProxySpace");
            proxyCaptureRotationProxySpace       = root.FindPropertyRelative("proxySettings.captureRotationProxySpace");
            proxyMirrorPositionProxySpace        = root.FindPropertyRelative("proxySettings.mirrorPositionProxySpace");
            proxyMirrorRotationProxySpace        = root.FindPropertyRelative("proxySettings.mirrorRotationProxySpace");
            resolutionScalable                   = new SerializedScalableSettingValue(root.Find((ProbeSettings p) => p.resolutionScalable));
            roughReflections                     = root.FindPropertyRelative("roughReflections");
            distanceBasedRoughness               = root.FindPropertyRelative("distanceBasedRoughness");
            frustumFieldOfViewMode               = root.FindPropertyRelative("frustum.fieldOfViewMode");
            frustumFixedValue                    = root.FindPropertyRelative("frustum.fixedValue");
            frustumViewerScale                   = root.FindPropertyRelative("frustum.viewerScale");
            frustumAutomaticScale                = root.FindPropertyRelative("frustum.automaticScale");

            cameraSettings = new SerializedCameraSettings(root.Find((ProbeSettings p) => p.cameraSettings));
            influence      = new SerializedInfluenceVolume(root.Find((ProbeSettings p) => p.influence));
            proxy          = new SerializedProxyVolume(root.Find((ProbeSettings p) => p.proxy));
        }
        internal SerializedProbeSettings(SerializedProperty root)
        {
            this.root = root;

            type               = root.Find((ProbeSettings p) => p.type);
            mode               = root.Find((ProbeSettings p) => p.mode);
            realtimeMode       = root.Find((ProbeSettings p) => p.realtimeMode);
            lightingMultiplier = root.FindPropertyRelative("lighting.multiplier");
            lightingWeight     = root.FindPropertyRelative("lighting.weight");
            lightingLightLayer = root.FindPropertyRelative("lighting.lightLayer");
            proxyUseInfluenceVolumeAsProxyVolume = root.FindPropertyRelative("proxySettings.useInfluenceVolumeAsProxyVolume");
            proxyCapturePositionProxySpace       = root.FindPropertyRelative("proxySettings.capturePositionProxySpace");
            proxyCaptureRotationProxySpace       = root.FindPropertyRelative("proxySettings.captureRotationProxySpace");
            proxyMirrorPositionProxySpace        = root.FindPropertyRelative("proxySettings.mirrorPositionProxySpace");
            proxyMirrorRotationProxySpace        = root.FindPropertyRelative("proxySettings.mirrorRotationProxySpace");
            frustumFieldOfViewMode = root.FindPropertyRelative("frustum.fieldOfViewMode");
            frustumFixedValue      = root.FindPropertyRelative("frustum.fixedValue");
            frustumViewerScale     = root.FindPropertyRelative("frustum.viewerScale");
            frustumAutomaticScale  = root.FindPropertyRelative("frustum.automaticScale");

            cameraSettings = new SerializedCameraSettings(root.Find((ProbeSettings p) => p.camera));
            influence      = new SerializedInfluenceVolume(root.Find((ProbeSettings p) => p.influence));
            proxy          = new SerializedProxyVolume(root.Find((ProbeSettings p) => p.proxy));
        }
コード例 #3
0
        public SerializedReflectionProxyVolumeComponent(SerializedObject serializedObject)
        {
            this.serializedObject = serializedObject;

            proxyVolume = new SerializedProxyVolume(serializedObject.Find((ReflectionProxyVolumeComponent c) => c.proxyVolume));
        }