class MAGES::PropertyProxyUtilities¶
Overview¶
Sometimes Unity refuses to inspect objects that are not wrapped around ScriptableObject. This class is a workaround for that. More…
class PropertyProxyUtilities { public: // classes class ColorPropertyProxy; class FloatPropertyProxy; class GenericPropertyProxy; class GradientPropertyProxy; class IntPropertyProxy; class ObjectPropertyProxy; class ProxyScriptableObject; class QuaternionPropertyProxy; class StringPropertyProxy; class Vector3PropertyProxy; class Vector4PropertyProxy; // methods static ScriptableObject CreateProxy(System.Type t, object value = default); };
Detailed Documentation¶
Sometimes Unity refuses to inspect objects that are not wrapped around ScriptableObject. This class is a workaround for that.
See MAGES.Editor.OverridablePropertyPropertyDrawer for more information.
Methods¶
static ScriptableObject CreateProxy(System.Type t, object value = default)
Create a proxy for the given value.
Parameters:
t |
The type of the value. |
value |
The value itself. |
Returns:
The Scriptable object instance containing a field named “value” with the given value and T type.