Skip to content

Instantly share code, notes, and snippets.

@JoseMiguelPizarro
Last active August 31, 2019 13:34
Show Gist options
  • Save JoseMiguelPizarro/60199c63d8630697a1c5350534fd143b to your computer and use it in GitHub Desktop.
Save JoseMiguelPizarro/60199c63d8630697a1c5350534fd143b to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEditor;
public abstract class LevelMeshTool
{
public abstract string IconPath { get; }
public abstract string ToolName { get; }
public GUIContent Content { get; set; }
public Texture2D IconTexture { get; set; }
public abstract void Act(LevelMeshEditor editorState, Event current);
public LevelMeshTool()
{
IconTexture = AssetDatabase.LoadAssetAtPath<Texture2D>(IconPath);
Content = new GUIContent(IconTexture);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment