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
using UnityEditor; | |
using UnityEngine; | |
// Add this under an Editor folder in the Unity project | |
[CustomPropertyDrawer(typeof(Color))] | |
public class ColorHexDrawer : PropertyDrawer | |
{ | |
// Draw the property inside the given rect | |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
{ |
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
{ | |
"dependencies": { | |
"com.unity.2d.sprite": "1.0.0", | |
"com.unity.ide.rider": "1.1.4", | |
"com.unity.ide.vscode": "1.2.1", | |
"com.unity.test-framework": "1.1.14", | |
"com.unity.textmeshpro": "2.0.1", | |
"com.unity.ugui": "1.0.0", | |
"com.unity.modules.androidjni": "1.0.0", | |
"com.unity.modules.assetbundle": "1.0.0", |
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
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Made by Rodrigo Diaz | |
/// http://www.rodrigos.work | |
/// This code is licensed under MIT license | |
/// | |
/// Make sure to add this class under a folder named "Editor" in the Unity Project | |
/// |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Made by Rodrigo Diaz | |
/// http://www.goldenfrogstudios.com/ | |
/// This code is licensed under MIT license | |
/// | |
/// Make sure to add this class under a folder named "Editor" in the Unity Project |