Example #1
0
 protected IEnumerator TearDown()
 {
     AssetCatalogBridge.ClearCatalog();
     BIWCatalogManager.ClearCatalog();
     BIWCatalogManager.Dispose();
     if (gameObjectToUse != null)
     {
         GameObject.Destroy(gameObjectToUse);
     }
     yield return(null);
 }
    public static void CreateTestCatalogLocalSingleObject()
    {
        AssetCatalogBridge.ClearCatalog();
        string jsonPath = Utils.GetTestAssetsPathRaw() + "/BuilderInWorldCatalog/sceneObjectCatalog.json";

        if (File.Exists(jsonPath))
        {
            string jsonValue = File.ReadAllText(jsonPath);
            AssetCatalogBridge.i.AddFullSceneObjectCatalog(jsonValue);
        }
    }
    public static void CreateTestCatalogLocal()
    {
        AssetCatalogBridge.ClearCatalog();

        string jsonPath = Utils.GetTestsAssetsPath() + "/SceneObjects/catalog.json";


        if (File.Exists(jsonPath))
        {
            Debug.Log("File found!");
            BinaryFormatter formatter = new BinaryFormatter();
            FileStream      stream    = new FileStream(jsonPath, FileMode.Open);

            string jsonValue = formatter.Deserialize(stream) as string;
            AssetCatalogBridge.i.AddFullSceneObjectCatalog(jsonValue);
            stream.Close();
        }
    }
Example #4
0
 protected override IEnumerator TearDown()
 {
     AssetCatalogBridge.ClearCatalog();
     yield return(base.TearDown());
 }