Skip to content

Commit 27da26b

Browse files
update
Renaming NetworkAnimatorParameterEntryEditor to NetworkAnimatorParameterEntryDrawer since it is a property drawer. Excluding NetworkAnimatorParameterEntryDrawer when the animation package is not installed.
1 parent 4168bca commit 27da26b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

com.unity.netcode.gameobjects/Editor/NetworkAnimatorParameterEntryEditor.cs renamed to com.unity.netcode.gameobjects/Editor/NetworkAnimatorParameterEntryDrawer.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11

2+
#if COM_UNITY_MODULES_ANIMATION
23
using Unity.Netcode.Components;
34
using UnityEditor;
4-
//using UnityEditor.UIElements;
5-
//using UnityEngine.UIElements;
65
using UnityEngine;
76

87
namespace Unity.Netcode.Editor
98
{
109
[CustomPropertyDrawer(typeof(NetworkAnimator.AnimatorParametersListContainer))]
11-
internal class NetworkAnimatorParameterEntryEditor : PropertyDrawer
10+
internal class NetworkAnimatorParameterEntryDrawer : PropertyDrawer
1211
{
1312
// Draw the property inside the given rect
1413
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
@@ -94,4 +93,4 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
9493
}
9594
}
9695
}
97-
96+
#endif

0 commit comments

Comments
 (0)