Class: Resource
Memberof
M3D.Assets
Description
资源对象基类
Author
ZYC
Date
2022-5-20
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
Resource
Table of contents
Constructors
Methods
Constructors
constructor
• new Resource(): Resource
Returns
Methods
getBlobPath
▸ getBlobPath(): string
Returns
string
Description
获取资源路径
getFilePath
▸ getFilePath(): string
Returns
string
Description
获取资源路径
getType
▸ getType(): ResourceType
Returns
Description
获取资源类型
markDirty
▸ markDirty(): void
Returns
void
Description
设置脏标记
setBlobPath
▸ setBlobPath(path
): void
Parameters
Name | Type | Description |
---|---|---|
path | string | 路径 |
Returns
void
Description
设置资源路径
setFilePath
▸ setFilePath(path
): void
Parameters
Name | Type | Description |
---|---|---|
path | string | 路径 |
Returns
void
Description
设置资源路径
setType
▸ setType(type
): void
Parameters
Name | Type | Description |
---|---|---|
type | ResourceType | 资源类型 |
Returns
void
Description
设置资源类型