예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public TestAudioMixerAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "Test Audio Mixer.mixer");
     TestDataBinary.WriteAudioMixer(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path);
 }
예제 #4
0
 public TestComputeShaderAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestComputeShader.compute");
     TestDataBinary.WriteComputeShader(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as ComputeShader;
 }
예제 #5
0
 public TestAnimatiorControllerAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestAnimatiorController.controller");
     TestDataBinary.WriteAnimatorController(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as AnimatorController;
 }
예제 #6
0
 public TestSceneAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestScene.unity");
     TestDataBinary.WriteScene(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as SceneAsset;
 }
예제 #7
0
 public TestTextureAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestTexture.png");
     TestDataBinary.WriteImage(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as Texture;
 }
예제 #8
0
 public TestSpriteAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestSprite.png");
     TestDataBinary.WriteSprite(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadAssetAtPath <Sprite>(Path);
 }
예제 #9
0
 public TestReflectionProbeAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestReflectionProbe.exr");
     TestDataBinary.WriteCubeMap(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as Cubemap;
 }
예제 #10
0
 public TestMeshAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestMesh.obj");
     TestDataBinary.WriteObj(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as GameObject;
 }
예제 #11
0
 public TestLightMapDataAsset(string parentPath)
 {
     Path = GeneratePath(parentPath, "TestLightMapAsset.asset");
     TestDataBinary.WriteLightingData(Path);
     AssetDatabase.ImportAsset(Path, ImportAssetOptions.ForceSynchronousImport);
     Instance = AssetDatabase.LoadMainAssetAtPath(Path) as LightingDataAsset;
 }