Skip to content

Instantly share code, notes, and snippets.

@baobao
Created February 2, 2017 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/f9d2febd78f71efaa69379e8a00dc871 to your computer and use it in GitHub Desktop.
Save baobao/f9d2febd78f71efaa69379e8a00dc871 to your computer and use it in GitHub Desktop.
Unity5.6.0b6から PlayerSettings.SetApplicationIdentifierが追加された。
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