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

Method GetScriptInstance

Source/Engine/Content/Assets/VisualScript.cpp:2151–2161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2149}
2150
2151VisualScript::Instance* VisualScript::GetScriptInstance(ScriptingObject* instance) const
2152{
2153 Instance* result = nullptr;
2154 if (instance)
2155 {
2156 Locker.Lock();
2157 result = _instances.TryGet(instance->GetID());
2158 Locker.Unlock();
2159 }
2160 return result;
2161}
2162
2163const Variant& VisualScript::GetScriptInstanceParameterValue(const StringView& name, ScriptingObject* instance) const
2164{

Callers 2

ProcessGroupFunctionMethod · 0.80
OnEventMethod · 0.80

Calls 4

LockMethod · 0.80
GetIDMethod · 0.80
UnlockMethod · 0.80
TryGetMethod · 0.45

Tested by

no test coverage detected