PropertyPathAccessor.access

Get a property out of component

class PropertyPathAccessor(ComponentType, FieldType = ComponentType, KeyType = string)
const
QualifierOfComponent!FieldType
access
(
ComponentType component
,
in KeyType path
,
RCIAllocator allocator = theAllocator
)
if (
isImplicitlyConvertible!(FieldType, ComponentType) &&
isInputRange!KeyType
)

Parameters

component ComponentType

a component which has some properties identified by property.

Return Value

Type: QualifierOfComponent!FieldType

FieldType accessed property.

Throws

NotFoundException in case when no requested property is available. InvalidArgumentException in case when passed arguments are somehow invalid for use.

Meta