Add Camera3D preview in Inspector

This commit is contained in:
Haoyu Qiu
2024-04-17 09:55:40 +08:00
parent 7ebc866418
commit 75eacba5cd
6 changed files with 79 additions and 40 deletions

View File

@@ -841,6 +841,8 @@ protected:
public:
static Node3DEditor *get_singleton() { return singleton; }
static Size2i get_camera_viewport_size(Camera3D *p_camera);
Vector3 snap_point(Vector3 p_target, Vector3 p_start = Vector3(0, 0, 0)) const;
float get_znear() const { return settings_znear->get_value(); }