MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Get

Function Get

Source/Engine/AI/BehaviorKnowledgeSelector.h:77–80  ·  view source on GitHub ↗

Gets the selected knowledge value (typed).

Source from the content-addressed store, hash-verified

75
76 // Gets the selected knowledge value (typed).
77 FORCE_INLINE T Get(const BehaviorKnowledge* knowledge) const
78 {
79 return TVariantValueCast<T>::Cast(BehaviorKnowledgeSelectorAny::Get(knowledge));
80 }
81
82 // Tries to get the selected knowledge value (typed). Returns true if got value, otherwise false.
83 FORCE_INLINE bool TryGet(const BehaviorKnowledge* knowledge, T& value)

Callers 3

GetNavMeshMethod · 0.70
InitMethod · 0.50
Base_InitMethod · 0.50

Calls 1

CastFunction · 0.50

Tested by

no test coverage detected