From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Scripting/GetComponent.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Runtime/Scripting/GetComponent.h (limited to 'Runtime/Scripting/GetComponent.h') diff --git a/Runtime/Scripting/GetComponent.h b/Runtime/Scripting/GetComponent.h new file mode 100644 index 0000000..f9aff0a --- /dev/null +++ b/Runtime/Scripting/GetComponent.h @@ -0,0 +1,16 @@ +#ifndef GETCOMPONENT_H +#define GETCOMPONENT_H + +#include "Runtime/Scripting/Backend/ScriptingTypes.h" +#include "Runtime/BaseClasses/BaseObject.h" +#include "Runtime/Mono/MonoIncludes.h" + +#if ENABLE_SCRIPTING + +ScriptingArrayPtr ScriptingGetComponentsOfType (Unity::GameObject& go, ScriptingObjectPtr reflectionTypeObject, bool useSearchTypeAsArrayReturnType, bool recursive, bool includeInactive); +ScriptingObjectPtr ScriptingGetComponentOfType (Unity::GameObject& go, ScriptingObjectPtr reflectionTypeObject, bool generateErrors = true); +ScriptingObjectPtr ScriptingGetComponentOfType (GameObject& go, ScriptingClassPtr systemTypeInstance); + +#endif + +#endif -- cgit v1.1-26-g67d0