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 | |
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>();
}