docs: clarify shared scene cameras and event lifecycle examples
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user