Game Framework  2021.05.31
ShowEntityDependencyAssetEventArgs类 参考

显示实体时加载依赖资源事件。 更多...

类 ShowEntityDependencyAssetEventArgs 继承关系图:
GameFrameworkEventArgs IReference

Public 成员函数

 ShowEntityDependencyAssetEventArgs ()
 初始化显示实体时加载依赖资源事件的新实例。 更多...
 
override void Clear ()
 清理显示实体时加载依赖资源事件。 更多...
 
- Public 成员函数 继承自 GameFrameworkEventArgs
 GameFrameworkEventArgs ()
 初始化游戏框架中包含事件数据的类的新实例。 更多...
 

静态 Public 成员函数

static ShowEntityDependencyAssetEventArgs Create (int entityId, string entityAssetName, string entityGroupName, string dependencyAssetName, int loadedCount, int totalCount, object userData)
 创建显示实体时加载依赖资源事件。 更多...
 

属性

int EntityId [get]
 获取实体编号。 更多...
 
string EntityAssetName [get]
 获取实体资源名称。 更多...
 
string EntityGroupName [get]
 获取实体组名称。 更多...
 
string DependencyAssetName [get]
 获取被加载的依赖资源名称。 更多...
 
int LoadedCount [get]
 获取当前已加载依赖资源数量。 更多...
 
int TotalCount [get]
 获取总共加载依赖资源数量。 更多...
 
object UserData [get]
 获取用户自定义数据。 更多...
 

详细描述

显示实体时加载依赖资源事件。

构造及析构函数说明

◆ ShowEntityDependencyAssetEventArgs()

初始化显示实体时加载依赖资源事件的新实例。

成员函数说明

◆ Clear()

override void Clear ( )
virtual

清理显示实体时加载依赖资源事件。

实现了 GameFrameworkEventArgs.

◆ Create()

static ShowEntityDependencyAssetEventArgs Create ( int  entityId,
string  entityAssetName,
string  entityGroupName,
string  dependencyAssetName,
int  loadedCount,
int  totalCount,
object  userData 
)
static

创建显示实体时加载依赖资源事件。

参数
entityId实体编号。
entityAssetName实体资源名称。
entityGroupName实体组名称。
dependencyAssetName被加载的依赖资源名称。
loadedCount当前已加载依赖资源数量。
totalCount总共加载依赖资源数量。
userData用户自定义数据。
返回
创建的显示实体时加载依赖资源事件。

属性说明

◆ DependencyAssetName

string DependencyAssetName
get

获取被加载的依赖资源名称。

◆ EntityAssetName

string EntityAssetName
get

获取实体资源名称。

◆ EntityGroupName

string EntityGroupName
get

获取实体组名称。

◆ EntityId

int EntityId
get

获取实体编号。

◆ LoadedCount

int LoadedCount
get

获取当前已加载依赖资源数量。

◆ TotalCount

int TotalCount
get

获取总共加载依赖资源数量。

◆ UserData

object UserData
get

获取用户自定义数据。