Commit e580198a authored by Steve Johnson's avatar Steve Johnson

new profiles

parent 59eba3f2
......@@ -9,10 +9,69 @@ public class CreateAssetBundles
Debug.Log ("Building WebPlayer AssetBundles");
BuildPipeline.BuildAssetBundles ("AssetBundles/WebPlayer", BuildAssetBundleOptions.None, BuildTarget.WebPlayer);
}
///[MenuItem ("Assets/Build Android AssetBundles")]
//static void BuildAndroidAssetBundles ()
//{
// Debug.Log ("Building Android AssetBundles");
// BuildPipeline.BuildAssetBundles ("AssetBundles/Android", BuildAssetBundleOptions.None, BuildTarget.Android);
//}
[MenuItem ("Assets/Build Android AssetBundles")]
static void BuildAndroidAssetBundles ()
{
Debug.Log ("Building Android AssetBundles");
BuildPipeline.BuildAssetBundles ("AssetBundles/Android", BuildAssetBundleOptions.None, BuildTarget.Android);
}
[MenuItem("Assets/Build Android AssetBundles - testing")]
static void ExportAssetBundleIOSComplete() {
// Bring up save panel
string path = EditorUtility.SaveFilePanel("Save Resource", "", "New Resource", "unity3d");
if (path.Length != 0) {
// Build the resource file from the active selection.
//
Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
//
BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, BuildTarget.Android);
Selection.objects = selection;
//
}
}
[MenuItem("Assets/Build AssetBundle From Selection - Track dependencies")]
static void ExportResurce() {
// Bring up save panel
string basename = Selection.activeObject ? Selection.activeObject.name : "New Resource";
string path = EditorUtility.SaveFilePanel("Save Resources", "Android", basename, "");
if (path.Length != 0) {
// Build the resource file from the active selection.
Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
// for Android
BuildPipeline.BuildAssetBundle(Selection.activeObject,
selection, path + ".android.unity3d",
BuildAssetBundleOptions.CollectDependencies |
BuildAssetBundleOptions.CompleteAssets,
BuildTarget.Android);
/*
// for iPhone
BuildPipeline.BuildAssetBundle(Selection.activeObject,
selection, path + ".iphone.unity3d",
BuildAssetBundleOptions.CollectDependencies |
BuildAssetBundleOptions.CompleteAssets,
BuildTarget.iPhone);
// for WebPlayer
BuildPipeline.BuildAssetBundle(Selection.activeObject,
selection, path + ".unity3d",
BuildAssetBundleOptions.CollectDependencies |
BuildAssetBundleOptions.CompleteAssets,
BuildTarget.WebPlayer);
*/
Selection.objects = selection;
}
}
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="Unity.Instance.Unity Editor" />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/CreateAssetBundles.cs">
<Files>
<File FileName="Assets/CreateAssetBundles.cs" Line="15" Column="2" />
<File FileName="Assets/CreateAssetBundles.cs" Line="45" Column="64" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
......
No preview for this file type
......@@ -3,5 +3,5 @@
"UserId" : "3035206372",
"AssetName" : "Sue@sitting_idle.fbx",
"AssetURL" : "http://html5.cablelabs.com/vrc/unityAssets",
"AssetFile" : "sue"
"AssetFile" : "Sue.android.unity3d"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment