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

Function GetFloat

Source/Engine/Serialization/JsonTools.h:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 FORCE_INLINE static float GetFloat(const Value& node, const char* name, const float defaultValue)
104 {
105 auto member = node.FindMember(name);
106 return member != node.MemberEnd() && member->value.IsNumber() ? member->value.GetFloat() : defaultValue;
107 }
108
109 FORCE_INLINE static int32 GetInt(const Value& node, const char* name, const int32 defaultValue)
110 {

Callers 4

GetMatrixMethod · 0.70
DeserializeMethod · 0.50
DeserializeMethod · 0.50
DeserializeMethod · 0.50

Calls 3

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetFloatMethod · 0.80

Tested by

no test coverage detected