mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
force build before export package
This commit is contained in:
parent
610c1223e2
commit
80ce5f0b83
|
|
@ -68,6 +68,20 @@ namespace VRM
|
|||
#endif
|
||||
public static void CreateUnityPackage()
|
||||
{
|
||||
// まずビルドする
|
||||
var levels = new string[] { "Assets/VRM/_RuntimeLoaderSample/VRMRuntimeLoaderSample.unity" };
|
||||
var buildPath = Path.GetFullPath(Application.dataPath + "/../build/build.exe");
|
||||
Debug.LogFormat("{0}", buildPath);
|
||||
var build=BuildPipeline.BuildPlayer(levels,
|
||||
buildPath,
|
||||
BuildTarget.StandaloneWindows,
|
||||
BuildOptions.None
|
||||
);
|
||||
if (!string.IsNullOrEmpty(build))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var path = GetPath(PREFIX);
|
||||
if (File.Exists(path))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user