1.8.2: Fixed a couple of more issues with certain using EditorGUI.PropertyField, and removed label element from SerializeReferenceTo when used in an array

This commit is contained in:
Anders Ejlersen 2023-04-23 17:38:47 +02:00
parent b189ec8b97
commit 61c7356b3a
5 changed files with 15 additions and 10 deletions

View file

@ -18,8 +18,10 @@ namespace Module.Inspector.Editor
var r0 = new Rect(position.x, position.y, position.width - WIDTH, position.height);
var r1 = new Rect(r0.xMax, r0.y, WIDTH, r0.height);
string temp = EditorGUI.TextField(r0, label, property.stringValue);
EditorGUI.PropertyField(r0, property, label);
if (!temp.Equals(property.stringValue))
property.stringValue = temp;
if (GUI.Button(r1, "Go"))
Application.OpenURL(property.stringValue);