Created
February 2, 2017 16:27
-
-
Save baobao/f9d2febd78f71efaa69379e8a00dc871 to your computer and use it in GitHub Desktop.
Unity5.6.0b6から PlayerSettings.SetApplicationIdentifierが追加された。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class SetApplicationIdentifierWindow : EditorWindow | |
{ | |
[MenuItem("Window/Identifier")] | |
static void Open() | |
{ | |
var w = EditorWindow.GetWindow<SetApplicationIdentifierWindow>(); | |
w.Show(); | |
} | |
void OnGUI() | |
{ | |
if (GUILayout.Button("SET")) | |
{ | |
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, "info.shibuya24.ios"); | |
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, "info.shibuya24.android"); | |
// アセット保存 | |
AssetDatabase.SaveAssets(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment