Created
May 5, 2018 23:47
-
-
Save GarnetSunset/760b5f6d2153e4feffc516f2755bba1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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