From ac68aa7cc17dc13189161612f1d40287f84f950d Mon Sep 17 00:00:00 2001 From: omakala Date: Wed, 19 Aug 2026 22:57:18 +0200 Subject: [PATCH] fix(Apple.Core): use GetAssetPath(Object) overload for Unity 6000.5 compatibility Unity 6000.5's InstanceID->EntityId migration makes GetInstanceID()-based AssetDatabase.GetAssetPath(int) error-level obsolete (CS0619, not suppressible), breaking editor compilation. The Object overload works on all Unity versions. Co-Authored-By: Claude Fable 5 --- .../Assets/Apple.Core/Editor/AppleBuildProfileEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuildProfileEditor.cs b/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuildProfileEditor.cs index aef4ad7e..37d4703d 100644 --- a/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuildProfileEditor.cs +++ b/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuildProfileEditor.cs @@ -180,7 +180,7 @@ public override void OnInspectorGUI() { if (_serializedDefaultInfoPlist.objectReferenceValue != null) { - string filePath = AssetDatabase.GetAssetPath(_serializedDefaultInfoPlist.objectReferenceValue.GetInstanceID()); + string filePath = AssetDatabase.GetAssetPath(_serializedDefaultInfoPlist.objectReferenceValue); if (!filePath.EndsWith(".plist")) { _serializedDefaultInfoPlist.objectReferenceValue = null; @@ -232,7 +232,7 @@ public override void OnInspectorGUI() EditorGUILayout.ObjectField(_serializedDefaultEntitlements, typeof(UnityEngine.Object), defaultEntitlementsLabel, GUILayout.MinWidth(_minLabelWidth)); if (EditorGUI.EndChangeCheck() && !(_serializedDefaultEntitlements.objectReferenceValue is null)) { - string filePath = AssetDatabase.GetAssetPath(_serializedDefaultEntitlements.objectReferenceValue.GetInstanceID()); + string filePath = AssetDatabase.GetAssetPath(_serializedDefaultEntitlements.objectReferenceValue); if (!filePath.EndsWith(".entitlements")) { _serializedDefaultEntitlements.objectReferenceValue = null;