docs: clarify shared scene cameras and event lifecycle examples

This commit is contained in:
2026-11-12 21:25:50 +08:00
parent 8a6bdc3790
commit 0c12190e2d
6 changed files with 7 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ class WorldActions {
panel: Panel3D
canvas: CanvasViewport
// 重置三维相机位置与观察目标,不改变面板或内层画布业务状态。
// 不重建 Camera,也不复位其 fov/near/far/up 或 controller;reset 仅写下面显式列出的六个属性。
function reset(self: WorldActions): Unit {
// reset.onClick 派发零参绑定方法,按绝对值恢复外层相机位置/target;不会调用 canvas.fitView。
self.view.camera.x = 0