public void OnAfterDeserialize()
 {
     type = SerializableValue.SerializableTypeCodeToType(defaultValue.TypeCode);
     if (type == null)
     {
         Debug.LogError("Not Found TypeName:" + defaultValue.TypeCode);
     }
 }
Example #2
0
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            //var typeCodeProperty = property.FindPropertyRelative("typeCode");
            //var stringValueProperty = property.FindPropertyRelative("stringValue");
            //var objectValueProperty = property.FindPropertyRelative("objectValue");
            //var curveValueProperty = property.FindPropertyRelative("curveValue");

            var sv = property.GetObjectOfProperty() as SerializableValue;

            ValueField(position, sv.Value, SerializableValue.SerializableTypeCodeToType(sv.TypeCode));
        }