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

Method Is

Source/Engine/Scripting/ScriptingObject.cpp:267–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool ScriptingObject::Is(const ScriptingTypeHandle& type) const
268{
269 CHECK_RETURN(type, false);
270#if SCRIPTING_OBJECT_CAST_WITH_CSHARP
271 return _type == type || CanCast(GetClass(), type.GetType().ManagedClass);
272#else
273 return CanCast(GetTypeHandle(), type);
274#endif
275}
276
277void ScriptingObject::ChangeID(const Guid& newId)
278{

Callers 5

FindObjectMethod · 0.45
TryFindObjectMethod · 0.45
GetPluginMethod · 0.45

Calls 2

GetClassFunction · 0.50
GetTypeMethod · 0.45

Tested by

no test coverage detected