public TestVideoClipAsset(string parentPath) { Path = GeneratePath(parentPath, "TestMovie.mp4"); TestDataBinary.WriteVideo(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as UnityEngine.Video.VideoClip; }
public TestAvatarMaskAsset(string parentPath) { Path = GeneratePath(parentPath, "Test Avatar Mask.mask"); TestDataBinary.WriteAvatarMask(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as AvatarMask; }
public TestAudioMixerAsset(string parentPath) { Path = GeneratePath(parentPath, "Test Audio Mixer.mixer"); TestDataBinary.WriteAudioMixer(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path); }
public TestComputeShaderAsset(string parentPath) { Path = GeneratePath(parentPath, "TestComputeShader.compute"); TestDataBinary.WriteComputeShader(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as ComputeShader; }
public TestAnimatiorControllerAsset(string parentPath) { Path = GeneratePath(parentPath, "TestAnimatiorController.controller"); TestDataBinary.WriteAnimatorController(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as AnimatorController; }
public TestSceneAsset(string parentPath) { Path = GeneratePath(parentPath, "TestScene.unity"); TestDataBinary.WriteScene(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as SceneAsset; }
public TestTextureAsset(string parentPath) { Path = GeneratePath(parentPath, "TestTexture.png"); TestDataBinary.WriteImage(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as Texture; }
public TestSpriteAsset(string parentPath) { Path = GeneratePath(parentPath, "TestSprite.png"); TestDataBinary.WriteSprite(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadAssetAtPath <Sprite>(Path); }
public TestReflectionProbeAsset(string parentPath) { Path = GeneratePath(parentPath, "TestReflectionProbe.exr"); TestDataBinary.WriteCubeMap(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as Cubemap; }
public TestMeshAsset(string parentPath) { Path = GeneratePath(parentPath, "TestMesh.obj"); TestDataBinary.WriteObj(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as GameObject; }
public TestLightMapDataAsset(string parentPath) { Path = GeneratePath(parentPath, "TestLightMapAsset.asset"); TestDataBinary.WriteLightingData(Path); AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport); Instance = AssetDatabase.LoadMainAssetAtPath(Path) as LightingDataAsset; }