EditorCamera

</> ursina.prefabs.editor_camera
Inherits Entity

Initialization

EditorCamera(     rotation_speed=200,     pan_speed=Vec2(5, 5),     move_speed=10,     zoom_speed=1.25,     zoom_smoothing=8,     ignore_scroll_on_ui=True,     rotation_smoothing=0,     rotate_key='right mouse',     rotate_around_mouse_hit=False     )

Attributes

.target_fov

default: camera.fov


.smoothing_helper

default: Entity(add_to_scene_entities=False)


.look_at

default: self.smoothing_helper.look_at


.look_at_2d

default: self.smoothing_helper.look_at_2d


.start_position

default: self.position


.perspective_fov

default: camera.fov


.orthographic_fov

default: camera.fov


.on_destroy

default: self.on_disable


.shortcuts

default: {'toggle_orthographic': 'shift+p', 'focus': 'shift...


Methods

on_enable()





on_disable()





on_destroy()





input()

input(key=None)



update()