Skip to content

Instantly share code, notes, and snippets.

@GarnetSunset
Created May 5, 2018 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarnetSunset/760b5f6d2153e4feffc516f2755bba1c to your computer and use it in GitHub Desktop.
Save GarnetSunset/760b5f6d2153e4feffc516f2755bba1c to your computer and use it in GitHub Desktop.
using System.IO;
using UnityEditor;
using UnityEngine;
public class DEADBEEF: EditorWindow {
public static GameObject _tempobj;
public static string _location;
public static AssetBundle _vrca;
[MenuItem("Assets/ImportVRCA")]
public static void ImportVRCA() {
_location = AssetDatabase.GetAssetPath(Selection.activeObject);
if (_vrca) {
_vrca.Unload(true);
DestroyImmediate(_tempobj);
}
_vrca = AssetBundle.LoadFromFile(_location);
foreach(Object tempObj in _vrca.LoadAllAssets()) {
_tempobj = (GameObject) Instantiate(tempObj);
GameObject newObj = new GameObject();
}
}
// Please for the love of god use some form of non-pattern based encryption on your cache files and stop storing them in %appdata% thanks. My SSD hates your game.
// GarnetSunset - 4/28/2018
// Assists from x753
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment