Fix package export & add unitypackage
This commit is contained in:
parent
e35acba996
commit
67e39fb72e
3 changed files with 13 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -44,7 +44,7 @@ sysinfo.txt
|
|||
|
||||
# Builds
|
||||
*.apk
|
||||
*.unitypackage
|
||||
*/*.unitypackage
|
||||
|
||||
# Crashlytics generated file
|
||||
LBRY\ 3D\ Viewer/Assets/StreamingAssets/crashlytics-build.properties
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using UnityEngine;
|
||||
|
@ -29,7 +31,15 @@ public class LBRY
|
|||
PlayerSettings.stripEngineCode = false;
|
||||
|
||||
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
|
||||
buildPlayerOptions.scenes = new[] { "Assets/Editor/LBRY.unity" };
|
||||
|
||||
List<string> scenes = new List<string>();
|
||||
foreach(EditorBuildSettingsScene scene in EditorBuildSettings.scenes) {
|
||||
if(scene.enabled) {
|
||||
scenes.Add(scene.path);
|
||||
}
|
||||
}
|
||||
|
||||
buildPlayerOptions.scenes = scenes.ToArray();
|
||||
buildPlayerOptions.locationPathName = "LBRY/Build";
|
||||
buildPlayerOptions.target = BuildTarget.WebGL;
|
||||
buildPlayerOptions.options = BuildOptions.UncompressedAssetBundle;
|
||||
|
|
BIN
lbry.unitypackage
Normal file
BIN
lbry.unitypackage
Normal file
Binary file not shown.
Loading…
Reference in a new issue