Esempio n. 1
0
        public static void Create()
        {
            EffectTracer asset = ScriptableObject.CreateInstance <EffectTracer>();

            AssetDatabase.CreateAsset(asset, "Assets/NewTracerEffect.asset");
            AssetDatabase.SaveAssets();

            EditorUtility.FocusProjectWindow();

            Selection.activeObject = asset;
        }