Skip to content
Open
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 @@ -180,7 +180,11 @@ public override void OnInspectorGUI()
{
if (_serializedDefaultInfoPlist.objectReferenceValue != null)
{
#if UNITY_6000_4_OR_NEWER
string filePath = AssetDatabase.GetAssetPath(_serializedDefaultInfoPlist.objectReferenceValue.GetEntityId());
#else
string filePath = AssetDatabase.GetAssetPath(_serializedDefaultInfoPlist.objectReferenceValue.GetInstanceID());
#endif
if (!filePath.EndsWith(".plist"))
{
_serializedDefaultInfoPlist.objectReferenceValue = null;
Expand Down Expand Up @@ -232,7 +236,11 @@ public override void OnInspectorGUI()
EditorGUILayout.ObjectField(_serializedDefaultEntitlements, typeof(UnityEngine.Object), defaultEntitlementsLabel, GUILayout.MinWidth(_minLabelWidth));
if (EditorGUI.EndChangeCheck() && !(_serializedDefaultEntitlements.objectReferenceValue is null))
{
#if UNITY_6000_4_OR_NEWER
string filePath = AssetDatabase.GetAssetPath(_serializedDefaultEntitlements.objectReferenceValue.GetEntityId());
#else
string filePath = AssetDatabase.GetAssetPath(_serializedDefaultEntitlements.objectReferenceValue.GetInstanceID());
#endif
if (!filePath.EndsWith(".entitlements"))
{
_serializedDefaultEntitlements.objectReferenceValue = null;
Expand Down