Posted at

unityテスト投稿

More than 1 year has passed since last update.

photonをAssetStoreからインポートしたら

Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs(483,164): error CS0619: UnityEditor.BuildTarget.iPhone' is obsolete:Use iOS instead (UnityUpgradable) -> iOS'

ってエラーが出る.


対処

else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android) || !InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.iPhone))

{

GUILayout.Label(CurrentLang.MobileExportNoteLabel);

GUILayout.Space(15);

}

ってとこの

else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android) || !InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.iPhone))

else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android))

にすると通るけど,これでいいのか不明