Revert "Revert "Change AssetType enum type (#161)" (#162)" (#163)

This reverts commit 1b731f8c06.
This commit is contained in:
GuoLei
2021-04-05 14:36:52 +08:00
committed by GitHub
parent 1b731f8c06
commit 58b9e2723e
2 changed files with 12 additions and 14 deletions

View File

@@ -6,33 +6,31 @@ export enum AssetType {
* Plain text.
* @remarks Will not be cached based on url in ResourceManager.
*/
Text = 0,
Text = "text",
/**
* JSON.
* @remarks Will not be cached based on url in ResourceManager.
*/
JSON = 1,
JSON = "json",
/**
* ArrayBuffer.
* @remarks Will not be cached based on url in ResourceManager.
*/
Buffer = 2,
Buffer = "buffer",
/** 2D Texture. */
Texture2D = 3,
Texture2D = "texture2d",
/** Cube Texture. */
TextureCube = 4,
TextureCube = "texture-cube",
/** Material. */
Material = 5,
Material = "material",
/** Mesh. */
Mesh = 6,
Mesh = "mesh",
/** Animation Clip. */
AnimationClip = 7,
AnimationClip = "animation-clip",
/** Prefab.*/
Perfab = 8,
Perfab = "prefab",
/** Compress Texture. */
KTX = 9,
KTX = "ktx",
/** Cube Compress Texture. */
KTXCube = 10
/** @todo Scene. */
// Scene = 9
KTXCube = "ktx-cube"
}

View File

@@ -15,7 +15,7 @@ export type LoadItem = {
/**
* Asset Type.
*/
type?: AssetType;
type?: string;
/**
* Number of retries after failed loading.
*/