public override SerializedObject GetRuntimeValueWrapper() { if (cachedProxy == null) { cachedProxy = CreateInstance(typeof(FloatVariableProxy)) as FloatVariableProxy; } cachedProxy.ProxyValue = Value; return(new SerializedObject(cachedProxy)); }
public override void ApplyModifiedValue(SerializedObject serializedObject) { FloatVariableProxy proxy = serializedObject.targetObject as FloatVariableProxy; Value = proxy.ProxyValue; }