LoginSignup
5
3

More than 5 years have passed since last update.

Unity Cloud BuildでのみPostProcessを無視したい

Posted at

#if UNITY_CLOUD_BUILD

UnityCloudBuildでのみxcodeの処理が失敗する! とか ~sdkが上手く動かない!ってことがあったときの対応。
UnityCloudBuildを判別するマクロが挿入されるので利用すれば良い.

public class PostProcessBuilder
{
    [PostProcessBuild]
    public static void OnPostProcess(BuildTarget target, string buildPath)
    {
        // UNITY_CLOUD_BUILD を利用すれば、処理を分岐できる
#if UNITY_CLOUD_BUILD
            return;
#endif
i       // ...
    }
}
5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3