public static object LoadWithType(TypedSerializedData data, object oldValue) { if (!string.IsNullOrEmpty(data.data)) { System.Type type = SerializableType.GetType(data.type); if (type == null) { Debug.LogError("Can't find type " + data.type); return(null); } return(VFXSerializer.Load(type, data.data, oldValue)); } return(null); }
public object Get() { return(VFXSerializer.Load(m_Type, m_SerializableObject, m_CachedValue)); }