You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace Pathfinding.Legacy {
|
||||
[CustomEditor(typeof(LegacyAIPath))]
|
||||
[CanEditMultipleObjects]
|
||||
public class LegacyAIPathEditor : BaseAIEditor {
|
||||
protected override void Inspector () {
|
||||
base.Inspector();
|
||||
var gravity = FindProperty("gravity");
|
||||
if (!gravity.hasMultipleDifferentValues && !float.IsNaN(gravity.vector3Value.x)) {
|
||||
gravity.vector3Value = new UnityEngine.Vector3(float.NaN, float.NaN, float.NaN);
|
||||
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||
}
|
||||
LegacyEditorHelper.UpgradeDialog(targets, typeof(AIPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user