diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Export/GameObjectExport.h |
Diffstat (limited to 'Runtime/Export/GameObjectExport.h')
-rw-r--r-- | Runtime/Export/GameObjectExport.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 |