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/Export/GameObjectExport.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Runtime/Export/GameObjectExport.h (limited to 'Runtime/Export/GameObjectExport.h') diff --git a/Runtime/Export/GameObjectExport.h b/Runtime/Export/GameObjectExport.h new file mode 100644 index 0000000..69e07f4 --- /dev/null +++ b/Runtime/Export/GameObjectExport.h @@ -0,0 +1,17 @@ +#ifndef _GAMEOBJECTEXPORT_H_ +#define _GAMEOBJECTEXPORT_H_ + +#include "UnityPrefix.h" + +#include "Runtime/Scripting/Backend/ScriptingTypes.h" + +namespace Unity +{ + class GameObject; +} + +ScriptingObjectPtr MonoAddComponent(Unity::GameObject& go, const char* name); +ScriptingObjectPtr MonoAddComponentWithType(Unity::GameObject& go, ScriptingObjectPtr reflectionTypeObject, bool dontShareMonoScript = false); +Unity::GameObject* MonoCreateGameObject(const char* name); + +#endif -- cgit v1.1-26-g67d0