public bool Parse(string data, System.Type componentType, string fieldName, System.Type fieldType, out object result) { if (DataConfigGenerator.TryToParse("config://", data, out var configName) == true) { result = DataConfigGenerator.GetConfig(configName); return(true); } result = null; return(false); }
public bool Parse(string data, System.Type fieldType, out object result) { if (DataConfigGenerator.TryToParse("go://", data, out var goPath) == true) { result = UnityEditor.AssetDatabase.LoadAssetAtPath <GameObject>(goPath); return(true); } result = null; return(false); }
public bool Parse(string data, System.Type componentType, string fieldName, System.Type fieldType, out object result) { if (DataConfigGenerator.TryToParse("component://", data, out var componentPath) == true) { result = UnityEditor.AssetDatabase.LoadAssetAtPath <GameObject>(componentPath).GetComponent(fieldType); return(true); } result = null; return(false); }
public bool Parse(string data, System.Type fieldType, out object result) { if (DataConfigGenerator.TryToParse("view://", data, out var viewPath) == true) { result = UnityEditor.AssetDatabase.LoadAssetAtPath <GameObject>(viewPath).GetComponent <ME.ECS.Views.ViewBase>(); return(true); } result = null; return(false); }