Skip to content

Commit b9467a4

Browse files
committed
Move Toolbox assembly to the Runtime directory; fix InspectorUtility.SetIsEditorExpanded method
1 parent a07a3e9 commit b9467a4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Assets/Editor Toolbox/Editor/Utilities/InspectorUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ internal static bool GetIsEditorExpanded(Editor editor)
5252
/// </summary>
5353
internal static void SetIsEditorExpanded(Editor editor, bool value)
5454
{
55-
InternalEditorUtility.SetIsInspectorExpanded(editor.target, true);
55+
InternalEditorUtility.SetIsInspectorExpanded(editor.target, value);
5656
//NOTE: in older versions Editor's foldouts are based on the m_IsVisible field and the Awake() method
5757
#if !UNITY_2019_1_OR_NEWER
5858
const string isVisibleFieldName = "m_IsVisible";
5959
var isVisible = editor.GetType().GetField(isVisibleFieldName,
6060
BindingFlags.Instance | BindingFlags.NonPublic);
6161
if (isVisible != null)
6262
{
63-
isVisible.SetValue(editor, true);
63+
isVisible.SetValue(editor, value);
6464
}
6565
#endif
6666
}

Assets/Editor Toolbox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,11 +971,11 @@ public void Usage()
971971
Allows to serialize folders in form of assets and retrieve direct paths in Runtime.
972972

973973
```csharp
974-
public SerializedDirectory serializeDirectory;
974+
public SerializedDirectory serializedDirectory;
975975

976976
public void Usage()
977977
{
978-
string path = serializeDirectory.DirectoryPath;
978+
string path = serializedDirectory.DirectoryPath;
979979
}
980980
```
981981

Assets/Examples/Scenes/SampleScene.unity

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ Transform:
18281828
m_ConstrainProportionsScale: 0
18291829
m_Children: []
18301830
m_Father: {fileID: 0}
1831-
m_RootOrder: 5
1831+
m_RootOrder: 7
18321832
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
18331833
--- !u!114 &1220714192
18341834
MonoBehaviour:
@@ -2207,7 +2207,7 @@ GameObject:
22072207
- component: {fileID: 1438743619}
22082208
- component: {fileID: 1438743618}
22092209
m_Layer: 0
2210-
m_Name: DecoratorDrawers [Sample]
2210+
m_Name: ToolboxDecoratorDrawers [Sample]
22112211
m_TagString: Untagged
22122212
m_Icon: {fileID: 2800000, guid: b105bf1fb7fe62e4baba0ffd7b433e7b, type: 3}
22132213
m_NavMeshLayer: 0
@@ -2285,7 +2285,7 @@ GameObject:
22852285
- component: {fileID: 1583836799}
22862286
- component: {fileID: 1583836798}
22872287
m_Layer: 0
2288-
m_Name: Special & Others [Sample]
2288+
m_Name: Toolbox Special & Others [Sample]
22892289
m_TagString: Untagged
22902290
m_Icon: {fileID: 2800000, guid: b105bf1fb7fe62e4baba0ffd7b433e7b, type: 3}
22912291
m_NavMeshLayer: 0
@@ -2336,7 +2336,7 @@ Transform:
23362336
m_ConstrainProportionsScale: 0
23372337
m_Children: []
23382338
m_Father: {fileID: 0}
2339-
m_RootOrder: 7
2339+
m_RootOrder: 5
23402340
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
23412341
--- !u!1 &1584091011
23422342
GameObject:
@@ -2456,7 +2456,7 @@ GameObject:
24562456
- component: {fileID: 1670253092}
24572457
- component: {fileID: 1670253093}
24582458
m_Layer: 0
2459-
m_Name: ConditionDrawers [Sample]
2459+
m_Name: ToolboxConditionDrawers [Sample]
24602460
m_TagString: Untagged
24612461
m_Icon: {fileID: 2800000, guid: b105bf1fb7fe62e4baba0ffd7b433e7b, type: 3}
24622462
m_NavMeshLayer: 0

0 commit comments

Comments
 (0)