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/LightProbeBindings.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Runtime/Export/LightProbeBindings.txt (limited to 'Runtime/Export/LightProbeBindings.txt') diff --git a/Runtime/Export/LightProbeBindings.txt b/Runtime/Export/LightProbeBindings.txt new file mode 100644 index 0000000..172ff04 --- /dev/null +++ b/Runtime/Export/LightProbeBindings.txt @@ -0,0 +1,35 @@ +C++RAW + + +#include "UnityPrefix.h" +#include "Configuration/UnityConfigure.h" +#include "Runtime/Scripting/ScriptingExportUtility.h" +#include "Runtime/Mono/MonoBehaviour.h" +#include "Runtime/Graphics/LightProbeGroup.h" + +CSRAW +using System; +namespace UnityEngine +{ + +// Light Probe Group +CLASS LightProbeGroup : Component + + // Editor only function to access and modify probe positions. + CONDITIONAL !UNITY_FLASH + CUSTOM_PROP Vector3[] probePositions + { + #if UNITY_EDITOR + return CreateScriptingArray (self->GetPositions(), self->GetPositionsSize (), MONO_COMMON.vector3); + #else + return CreateScriptingArray ((const Vector3f*)NULL, 0, MONO_COMMON.vector3); + #endif + } + { + #if UNITY_EDITOR + self->SetPositions (&GetMonoArrayElement (value, 0), mono_array_length_safe(value)); + #endif + } +END + +CSRAW } -- cgit v1.1-26-g67d0