engine
 
载入中...
搜索中...
未找到
所有成员列表
TMovieSceneAnimTypeID< T, Seed > 模板结构体 参考

Templated class that initializes a unique ID for the templated type (normally an execution token) Care should be taken here not to expose the type in any way across a DLL boundary, as this will break the uniqueness of the identifier. 更多...

#include <MovieSceneAnimTypeID.h>

+ 类 TMovieSceneAnimTypeID< T, Seed > 继承关系图:

额外继承的成员函数

- 静态 Protected 成员函数 继承自 FMovieSceneAnimTypeID
static MOVIESCENE_API uint64 GenerateHash (void *StaticPtr, uint32 Seed)
 Generate a hash from the specified static ptr
 
static MOVIESCENE_API uint64 Initialize (uint64 *StaticPtr, uint32 Seed)
 Initialize this structure by storing the hash result in the static ptr itself This ensures subsequent constructions with the same pointer are fast
 

详细描述

template<typename T, uint8 Seed = 0>
struct TMovieSceneAnimTypeID< T, Seed >

Templated class that initializes a unique ID for the templated type (normally an execution token) Care should be taken here not to expose the type in any way across a DLL boundary, as this will break the uniqueness of the identifier.

If it's necessary to expose the ID across DLL boundaries, use the following pattern:

MyAnimationToken.h:

struct FMyAnimationToken : IMovieSceneExecutionToken
{
    MYMODULE_API static FMovieSceneAnimTypeID GetTypeID();
};

MyAnimationToken.cpp:

FMovieSceneAnimTypeID FMyAnimationToken::GetTypeID()
{
    return TMovieSceneAnimTypeID<FMyAnimationToken>();
}

该结构体的文档由以下文件生成: