Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
958 B

using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class BuildAssetPackages
{
enum BuildConfiguration
{
Windows,
Android
}
public static void Build()
{
Debug.Log("Building Deliverables");
ExportPackages();
}
public static void ExportPackages()
{
string[] assets = AssetDatabase.FindAssets("t:Object", null).Select(s=>AssetDatabase.GUIDToAssetPath(s)).ToArray();
assets = assets.Where(s=>
s.StartsWith("Assets/Oculus/Avatar/") ||
s.StartsWith("Assets/Oculus/AudioManager/") ||
s.StartsWith("Assets/Oculus/LipSync/") ||
s.StartsWith("Assets/Oculus/Platform/") ||
s.StartsWith("Assets/Oculus/Spatializer/") ||
s.StartsWith("Assets/Oculus/VoiceMod/") ||
s.StartsWith("Assets/Oculus/VR/") ||
s.StartsWith("Assets/Oculus/SampleFramework/")
).ToArray();
AssetDatabase.ExportPackage(assets, "OculusIntegration.unitypackage");
}
}