Exemplo n.º 1
0
        void OnSceneGUI()
        {
            Handles.BeginGUI();

            var openUrl = target as OpenUrl;
            var pos     = openUrl.transform.position - new Vector3(0, -250, 0);

            Handles.Label(pos, SimpleUI.GetPrettyNameForExistingUrl("/" + openUrl.Url, prefabs)); // transform.position - new Vector3(0, -250, 0)

            if (GUILayout.Button(openUrl.Url))
            {
                OpenCurrentUrl();
            }

            Handles.EndGUI();
        }