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

Method GetField

Source/Engine/Scripting/Runtime/DotNet.cpp:1137–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137MField* MClass::GetField(const char* name) const
1138{
1139 GetFields();
1140 for (int32 i = 0; i < _fields.Count(); i++)
1141 {
1142 if (_fields[i]->GetName() == name)
1143 return _fields[i];
1144 }
1145 return nullptr;
1146}
1147
1148const Array<MField*, ArenaAllocation>& MClass::GetFields() const
1149{

Callers 1

SetInternalValuesMethod · 0.45

Calls 3

GetFieldsFunction · 0.85
CountMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected