Created
July 31, 2021 15:33
-
-
Save dyguests/a133fe3609d2126f89e45ac3e147a2b9 to your computer and use it in GitHub Desktop.
Unity Button without Image.
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
// https://stackoverflow.com/questions/36888780/how-to-make-an-invisible-transparent-button-work | |
// file Touchable.cs | |
// Correctly backfills the missing Touchable concept in Unity.UI's OO chain. | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomEditor(typeof(Touchable))] | |
public class Touchable_Editor : Editor | |
{ public override void OnInspectorGUI(){} } | |
#endif | |
public class Touchable:Text | |
{ protected override void Awake() { base.Awake();} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment