using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEngine; /// /// Super class for every Polybrush Assets implementing Reset() function /// so that when you reset them from the inspector they don't loose their name /// public class PolyAsset : ScriptableObject { /// /// Reset() function so that when you reset Polybrush Assets /// from the inspector they don't loose their name /// protected virtual void Reset() { string path = AssetDatabase.GetAssetPath(this.GetInstanceID()); this.name = Path.GetFileNameWithoutExtension(path); } }