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

Method GetProperty

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

Source from the content-addressed store, hash-verified

1185}
1186
1187MProperty* MClass::GetProperty(const char* name) const
1188{
1189 GetProperties();
1190 for (int32 i = 0; i < _properties.Count(); i++)
1191 {
1192 if (_properties[i]->GetName() == name)
1193 return _properties[i];
1194 }
1195 return nullptr;
1196}
1197
1198const Array<MProperty*, ArenaAllocation>& MClass::GetProperties() const
1199{

Callers 1

MExceptionMethod · 0.45

Calls 2

CountMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected