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

Method FindField

Source/Engine/Scripting/BinaryModule.cpp:1414–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412}
1413
1414void* ManagedBinaryModule::FindField(const ScriptingTypeHandle& typeHandle, const StringAnsiView& name)
1415{
1416 const ScriptingType& type = typeHandle.GetType();
1417 void* result = type.ManagedClass ? type.ManagedClass->GetField(name.Get()) : nullptr;
1418 if (!result && type.ManagedClass)
1419 {
1420 result = type.ManagedClass->GetProperty(name.Get());
1421 if (result)
1422 result = SetManagedBinaryModulePropertyHandle(result);
1423 }
1424 return result;
1425}
1426
1427void ManagedBinaryModule::GetFieldSignature(void* field, ScriptingTypeFieldSignature& fieldSignature)
1428{

Callers 1

AccessVariantFunction · 0.45

Calls 4

GetTypeMethod · 0.45
GetFieldMethod · 0.45
GetMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected