Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class KeyListGeneratorSelectorWindow : EditorWindow

private void OnEnable()
{
VisualTreeAsset document = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>("Assets/Plugins/SerializedCollections/Editor/Assets/KeysGeneratorSelectorWindow.uxml");
//Editor/Assets/KeysGeneratorSelectorWindow.uxml
var assetPath = AssetDatabase.GUIDToAssetPath("681c8a924c8b1e14b9fe53bb7397ec3d");
VisualTreeAsset document = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(assetPath);
var element = document.CloneTree();
element.style.height = new StyleLength(new Length(100, LengthUnit.Percent));
rootVisualElement.Add(element);
Expand Down Expand Up @@ -179,4 +181,4 @@ private KeyListGenerator GetOrCreateKeysGenerator(Type type)
return _keysGenerators[type];
}
}
}
}
6 changes: 4 additions & 2 deletions Editor/Scripts/SerializedDictionaryDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ internal static GUIContent DisplayTypeToggleContent
{
if (_displayTypeToggleContent == null)
{
var texture = AssetDatabase.LoadAssetAtPath<Texture>("Assets/Plugins/SerializedCollections/Editor/Assets/BurgerMenu@2x.png");
//Editor/Assets/BurgerMenu@2x.png
var assetPath = AssetDatabase.GUIDToAssetPath("8deddfed9f39d7740879d2cb0fcf7ce0");
var texture = AssetDatabase.LoadAssetAtPath<Texture>(assetPath);
_displayTypeToggleContent = new GUIContent(texture, "Toggle to either draw existing editor or draw properties manually.");
}
return _displayTypeToggleContent;
Expand All @@ -59,4 +61,4 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
return _arrayData[property.propertyPath].GetPropertyHeight(label);
}
}
}
}