Skip to content

Commit

Permalink
fix:camera trackingtype/cameratype jsb attribute lost (#15867)
Browse files Browse the repository at this point in the history
(used in xr)
  • Loading branch information
oahc09 authored Aug 7, 2023
1 parent 9f7bf8a commit 5886a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/tools/swig-config/scene.i
Original file line number Diff line number Diff line change
Expand Up @@ -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<cc::IntrusivePtr<cc::scene::Camera>>&, cameras, getCameras);
Expand Down

0 comments on commit 5886a00

Please sign in to comment.