ebf3999cfe
Fix rubber band selector activating outside of the viewport
...
This usually happens while trying to drag the window from window handle
2025-04-19 21:14:09 +03:00
5401166a07
Fix error when entering playmode while holding right mouse button
2025-04-19 21:14:00 +03:00
3f6bf15554
Implement relative mouse mode (raw input) for SDL platform
2025-04-19 21:13:34 +03:00
Wojtek Figat
9c3fd052cd
Remove copyright year from source files and update to 2025
2025-04-07 19:22:21 +02:00
Wojtek Figat
47b22b305d
Add conditional showing of Clear Debug Draw buttons only if there is anything to clear
...
#2989
2025-03-03 09:51:05 +01:00
Wojtek Figat
6ad20b222d
Merge branch 'DebugDrawClearInEditor' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-DebugDrawClearInEditor
...
# Conflicts:
# Source/Editor/Windows/GameWindow.cs
2025-03-03 09:40:01 +01:00
Wojtek Figat
275ca296fa
Fix editor orthographic viewport in top or bottom view
...
#3169
2025-01-25 00:38:51 +01:00
xxSeys1
7e1d6679ce
add debug draw clear to game and editor panel
2024-10-15 19:43:08 +02:00
Wojtek Figat
7311522328
Fix compile regression with large worlds
2024-09-11 13:39:15 +02:00
Wojtek Figat
c1a5db616e
Add ProjectPoint for Editor Viewport
...
#2814
2024-09-10 11:10:15 +02:00
Wojtek Figat
dfde648e79
Merge branch 'invert-y-rot' of https://github.com/Tryibion/FlaxEngine into Tryibion-invert-y-rot
2024-08-21 22:37:02 +02:00
Chandler Cox
6fad87002d
Add option to invert the y-axis mouse rotation in the editor viewport.
2024-08-21 14:32:47 -05:00
Wojtek Figat
6534136632
Fix editor viewport mouse control bug when using Alt key
...
#2816
2024-08-20 18:56:38 +02:00
Wojtek Figat
2542adba92
Fix ConvertMouseToRay for orthographic projection
...
#2748
2024-08-20 16:10:03 +02:00
Chandler Cox
94334ae52d
Dont zoom in edit game window if shift is clicked and window is not focused
2024-08-10 10:02:31 -05:00
Wojtek Figat
5c23f4ac09
Fix project cache in editor to use invariant culture when converting numbers
2024-05-30 17:22:30 +02:00
Wojtek Figat
446c1edafc
Fix deselecting actors when using camera orbiting in viewport after releasing LMB when Alt is up
...
#2447
2024-04-16 21:00:54 +02:00
8af8d50de1
Remove Editor viewport aspect ratio scaling from camera mouse movement
...
Rescaled the final mouse delta values to roughly matching default
viewport width in 1080p resolution.
2024-04-09 20:06:35 +03:00
rkrahn
d331e6b848
Merge remote-tracking branch 'upstream/master'
2024-03-29 13:38:38 -07:00
Wojtek Figat
155b4a3ba9
Refactor editor gizmo viewports to use shared code for widgets
2024-03-19 17:53:45 +01:00
Wojtek Figat
91298fee19
Fixes for UI editor changes
2024-03-18 15:32:42 +01:00
Wojtek Figat
c60244878d
Add **UI Control gizmo for editing UIs**
2024-03-16 22:00:40 +01:00
rkrahn
eac553a992
Add toggle orthographic view hotkey
...
Adds the Toggle Orthographic hotkey to the editor. Bound to 'NumpadDecimal' by default.
2024-03-10 13:49:14 -07:00
Wojtek Figat
859c420d76
Update year in copyright note
2024-02-26 19:00:48 +01:00
Wojtek Figat
2de890ca6a
Codecleanup for #1482
2024-02-19 17:33:21 +01:00
z1dev
e0cb94ec74
Fix for editor view's cached "CameraNearPlaneValue" getting overwritten.
...
Changing the editor's camera sometimes results in empty views in editors. It was caused by writing the _farPlane with the wrong name in the cache.
2024-01-02 00:08:00 +01:00
Chandler Cox
9a712ba3cf
Fix selecting objects/gizmos with high far plane.
2023-12-02 09:12:38 -06:00
Wojtek Figat
daf31cfa4d
Format code #1611
2023-10-25 14:57:44 +02:00
Wojtek Figat
7c84ca5b84
Merge branch 'feat/improved-camera-settings' of https://github.com/solnem/FlaxEngine into solnem-feat/improved-camera-settings
2023-10-24 14:50:52 +02:00
Chandler Cox
7b984396cc
Add not to close Debug View CM on button clicked.
2023-10-13 20:52:26 -05:00
02a219a376
Fix Editor viewport camera transformation getting corrupted when focused
2023-10-11 21:45:07 +03:00
4db1975f02
Fix Editor viewport camera drifting with odd viewport sizes
2023-10-08 17:28:28 +03:00
Christopher Rothert
5e85fa2c0c
Merge branch 'master' into feat/improved-camera-settings
2023-10-08 01:41:05 +02:00
Christopher Rothert
966e5cdda2
Update some comments
2023-10-08 01:40:50 +02:00
Christopher Rothert
997c442e69
Update movement speed formatting
...
* add property for movement speed text format
* add additional checks to camera speed progress calculation
* round movement speed to make it visually more appealing in the context menu
2023-10-08 01:07:36 +02:00
Christopher Rothert
00aa54cde8
Update camera speed stepping and easing
...
* remove complex curve function
* update camera easing feature to use Mathf.Pow instead
* add total camera speed steps to ViewportOptions
* change default value for max camera speed from 64 to 32
* update ViewportOptions ordering and grouping
* update string format for movement speed
2023-10-07 02:40:52 +02:00
Wojtek Figat
2cac149741
Code cleanup for #1377
2023-10-06 15:58:23 +02:00
Wojtek Figat
58552afc40
Merge branch 'viewlayer' of https://github.com/Withaust/FlaxEngine into Withaust-viewlayer
2023-10-06 15:26:15 +02:00
Christopher Rothert
fd94cfb469
Update how camera settings widget is displayed
...
* add option to force a certain text width to ViewportWidgetButton
* force camera settings widget to fit longest possible speed value
* changed displayed camera speed using string.Format
* changed some lines to always correctly display the camera speed
* switched from Mathf.Clamp to Mathf.Saturate for values between 0 and 1
2023-10-05 20:04:09 +02:00
Christopher Rothert
3a9fdd8b52
Add possibility to disable camera easing
...
* add camera easing setting to camera settings widget
* add camera easing default setting to ViewportOptions
* update some settings in ViewportOptions
2023-10-05 13:10:02 +02:00
Christopher Rothert
4b78d5e39e
Orthographic/perspective mode toggle
...
Note: missing dedicated icon!
2023-10-04 23:30:51 +02:00
Christopher Rothert
1f2d665654
Add camera speed easing based on Mathf.InterpEaseInOut
...
* change camera move speed method to use easing curve
* add methods for inversion of Mathf.InterpEaseInOut (might have better alternative)
* add setting for easing curve degree in ViewportOptions
* update camera speed adjustments to use easing curve
* remove unused camera speed values array
* update some comments and namings
2023-10-04 23:30:51 +02:00
Christopher Rothert
ccf37e9d68
Add saving and loading of cached values for camera settings
...
* remove "Default" from all settings in ViewportOptions as they are shown in the "Defaults" group anyway
2023-10-04 23:30:51 +02:00
Christopher Rothert
a280ce3dc7
Add reset button to camera settings widget
2023-10-04 23:30:51 +02:00
Christopher Rothert
4f93a0d9c9
Add default camera settings to editor options
...
* update ViewportOptions to include new default camera settings
* update existing default settings in ViewportOptions
* extract viewport options setup into own method
* initialize new camera settings with default settings in EditorViewport
2023-10-04 23:30:50 +02:00
Christopher Rothert
67536f04e9
Improve camera panning
...
* add camera panning speed option to camera settings context menu
* add relative panning speed based on distance to camera target to camera settings context menu
* add relative panning option to camera settings context menu
* fix float comparisons
* remove invert panning entry from view widget
* remove unused show/hide method for camera widget
2023-10-04 23:30:50 +02:00
Christopher Rothert
3dcd1a5ffb
Improve viewport camera settings
...
* remove fixed camera speed buttons from camera speed scale widget
* change camera speed scale widget to general camera settings widget
* move all camera-related settings from view mode widget to camera settings widget
* fix some typo
* add possibility to set camera speed manually
* add min/max camera speed options
2023-10-04 23:30:50 +02:00
Wojtek Figat
5e3bb4d51e
Merge branch 'font-size-fixes' of https://github.com/Tryibion/FlaxEngine into Tryibion-font-size-fixes
2023-10-01 12:05:20 +02:00
efbc757369
Cancel camera rotation toggle when entering playmode or hitting escape
2023-09-23 15:23:08 +03:00
2023aa8c94
Add viewport camera movement speed adjustment input bindings
2023-09-23 15:23:08 +03:00