|
@@ -23,11 +23,12 @@ namespace KairoEngine.Core.Editor
|
|
|
SirenixEditorGUI.BeginBox();
|
|
|
SirenixEditorGUI.BeginBoxHeader();
|
|
|
string text = ValueResolver.GetForString(this.Property, this.Attribute.text, null).GetValue();
|
|
|
- Texture2D image = EditorGUIUtility.FindTexture(this.Attribute.iconPath);
|
|
|
+ string path = ValueResolver.GetForString(this.Property, this.Attribute.iconPath, null).GetValue();
|
|
|
+ Texture2D image = EditorGUIUtility.FindTexture(path);
|
|
|
if(image == null)
|
|
|
{
|
|
|
image = new Texture2D(1, 1);
|
|
|
- var data = System.IO.File.ReadAllBytes(this.Attribute.iconPath);
|
|
|
+ var data = System.IO.File.ReadAllBytes(path);
|
|
|
if(data != null) image.LoadImage(data);
|
|
|
image.Apply();
|
|
|
}
|