{
var objs = new List<Object>();
for (var i = 0; i < serializedObject.targetObjects.Length; i++)
objs.Add(((PlanarReflectionProbe)serializedObject.targetObjects[i]).proxyVolumeReference);
reflectionProxyVolume = new SerializedReflectionProxyVolumeComponent(new SerializedObject(objs.ToArray()));
var p = ((PlanarReflectionProbe)serializedObject.targetObjects[i]).proxyVolumeReference;
if (p != null)
objs.Add(p);
}
reflectionProxyVolume = objs.Count > 0
? new SerializedReflectionProxyVolumeComponent(new SerializedObject(objs.ToArray()))
: null;
public void Update()
var updateProxyVolume = serializedObject.targetObjects.Length != reflectionProxyVolume.serializedObject.targetObjects.Length;
if (!updateProxyVolume)
var updateProxyVolume = reflectionProxyVolume != null
&& serializedObject.targetObjects.Length != reflectionProxyVolume.serializedObject.targetObjects.Length;
if (!updateProxyVolume && reflectionProxyVolume != null)
var proxyVolumeTargets = reflectionProxyVolume.serializedObject.targetObjects;
public void Apply()
serializedObject.ApplyModifiedProperties();
reflectionProxyVolume.Apply();
if (reflectionProxyVolume != null)
public override void Update()
base.Update();
SetIsSectionExpanded_Shape((ShapeType)data.shapeType.intValue);
if (data != null)
void SetIsSectionExpanded_Shape(ShapeType shape)
public override void Reset(SerializedReflectionProxyVolumeComponent data, UnityAction repaint)
proxyVolume.Reset(data.proxyVolume, repaint);
base.Reset(data, repaint);