summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/GetComponent.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Scripting/GetComponent.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Scripting/GetComponent.h')
-rw-r--r--Runtime/Scripting/GetComponent.h16
1 files changed, 16 insertions, 0 deletions
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