Navigation
API > API/Runtime > API/Runtime/MovieScene
Variadic template representing a single entity with a range of entities with the same a set of typed components.
The template parameters define each component type by index, whose constness should match the read/write semantics of the accessor. For example, an entity with a float, int and bool component, accessed read-only should be represented by a TEntityPtr
| Name | TEntityPtr |
| Type | struct |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityRange.h |
| Include Path | #include "EntitySystem/MovieSceneEntityRange.h" |
Syntax
template<typename... T>
struct TEntityPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TEntityPtr
(
int32 InEntityIndex, |
Construct this range from a range and index | EntitySystem/MovieSceneEntityRange.h |
Struct Specializations
| Name | Remarks |
|---|---|
| TEntityPtr< T > |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EntityIndex | int32 | This entity's index within the range | EntitySystem/MovieSceneEntityRange.h | |
| Owner | const TEntityRange< T... > * | The range that this entity ptr resides within | EntitySystem/MovieSceneEntityRange.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
auto & Get () |
Retrieve the component at the specified Index within this TEntityPtr's parameters. | EntitySystem/MovieSceneEntityRange.h | |
auto * GetOptional () |
Optionally retrieve the component at the specified ComponentTypeIndex within this TEntityPtr's parameters. | EntitySystem/MovieSceneEntityRange.h | |
void Set
(
ValueType&& InValue |
Set the value of the component at the specified index withinin this entity | EntitySystem/MovieSceneEntityRange.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TEntityPtr & operator--() |
Increment this pointer | EntitySystem/MovieSceneEntityRange.h | |
operator bool() |
Test whether this pointer is valid | EntitySystem/MovieSceneEntityRange.h | |
TEntityPtr & operator*() |
Dereference this pointer | EntitySystem/MovieSceneEntityRange.h | |
TEntityPtr & operator++() |
Increment this pointer | EntitySystem/MovieSceneEntityRange.h |