From 5886a0066d040b71e4b5105030cbb2a9dfd792b2 Mon Sep 17 00:00:00 2001 From: oahc09 Date: Mon, 7 Aug 2023 14:33:07 +0800 Subject: [PATCH] fix:camera trackingtype/cameratype jsb attribute lost (#15867) (used in xr) --- native/tools/swig-config/scene.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native/tools/swig-config/scene.i b/native/tools/swig-config/scene.i index 6464584d82..39aa6e9364 100644 --- a/native/tools/swig-config/scene.i +++ b/native/tools/swig-config/scene.i @@ -445,6 +445,8 @@ using namespace cc; %attribute(cc::scene::Camera, cc::pipeline::GeometryRenderer *, geometryRenderer, getGeometryRenderer); %attribute(cc::scene::Camera, uint32_t, systemWindowId, getSystemWindowId); %attribute(cc::scene::Camera, cc::scene::CameraUsage, cameraUsage, getCameraUsage, setCameraUsage); +%attribute(cc::scene::Camera, cc::scene::TrackingType, trackingType, getTrackingType, setTrackingType); +%attribute(cc::scene::Camera, cc::scene::CameraType, cameraType, getCameraType, setCameraType); %attribute(cc::scene::RenderScene, ccstd::string&, name, getName); %attribute(cc::scene::RenderScene, ccstd::vector>&, cameras, getCameras);