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

@ -20,9 +20,11 @@ namespace Module.Inspector.Editor
var rect0 = new Rect(position.x, position.y, position.width - WIDTH, position.height);
var rect1 = new Rect(rect0.xMax, position.y, WIDTH, position.height);
EditorGUI.PropertyField(rect0, property, label);
string temp = EditorGUI.TextField(rect0, label, property.stringValue);
if (!temp.Equals(property.stringValue))
property.stringValue = temp;
if (GUI.Button(rect1, "Go"))
{
string str = EditorNamingUtility.ConvertTo(att.type, property.stringValue);