public static bool InspectorField(EffekseerCurveResource res) { EditorGUILayout.LabelField(res.path); var result = EditorGUILayout.ObjectField(res.asset, typeof(EffekseerCurveAsset), false) as EffekseerCurveAsset; if (result != res.asset) { res.asset = result; return(true); } return(false); }
public static EffekseerCurveResource LoadAsset(string dirPath, string resPath) { resPath = Path.ChangeExtension(resPath, ".asset"); EffekseerCurveAsset asset = AssetDatabase.LoadAssetAtPath <EffekseerCurveAsset>(EffekseerEffectAsset.NormalizeAssetPath(dirPath + "/" + resPath)); var res = new EffekseerCurveResource(); res.path = resPath; res.asset = asset; return(res); }