Created
August 31, 2019 12:54
-
-
Save JoseMiguelPizarro/e553e88dbaa705851b4a9d5aa61a9314 to your computer and use it in GitHub Desktop.
toolsButton GUIContent[]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CustomEditor(typeof(LevelMesh))] | |
public class LevelMeshEditor : Editor | |
{ | |
private GUIContent selectButton; | |
private string selectButtonIconPath = "Assets/Resources/Icons/select.png"; | |
private GUIContent[] toolsButton; | |
private void OnEnable() | |
{ | |
Texture2D selectButtonIcon = AssetDatabase.LoadAssetAtPath<Texture2D>(selectButtonIconPath); | |
selectButton = new GUIContent(selectButtonIcon); | |
toolsButton = new GUIContent[] {selectButton}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment