Commit Graph

221 Commits

Author SHA1 Message Date
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
19a0eab966 Merge branch 'sceneanim_null_check_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-sceneanim_null_check_fix 2023-10-01 12:12:21 +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
58445f04c4 Fix potential incorrect null checks in FlaxEngine.Objects
The null-conditional operator checks for reference equality of the
Object, but doesn't check the validity of the unmanaged pointer. This
check is corrected in cases where the object was not immediately
returned from the bindings layer and may have been destroyed earlier.
2023-09-28 22:05:58 +03: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
0122a9f699 Implement viewport camera rotation toggle for trackpad users 2023-09-23 15:23:08 +03:00
964913013d Add shortcut key to gizmo buttons 2023-09-23 15:23:07 +03:00
17e1afb04a Add Editor input option for toggling gizmo transform space 2023-09-23 15:23:07 +03:00
Chandler Cox
ab2d60e6d2 Fix viewport options extras locations. 2023-09-16 15:30:49 -05:00
Wiktor Kocielski
d389348260 Add View Layers button & Reset/Disable/Copy/Paste buttons to View Flags/Debug View & Camera RenderFlags/RenderView addition 2023-09-13 12:17:34 +03:00
Chandler Cox
1286a29462 Add not closing some cm buttons 2023-08-19 14:30:08 -05:00
Wojtek Figat
95fdcf01be Codestyle fix 2023-08-14 18:53:11 +02:00
Ruan Lucas
be33fc6018 improv scroll locked focus 2023-08-11 22:31:12 -04:00
Ruan Lucas
db806ad500 fix for large worlds 2023-08-11 08:28:28 -04:00
Ruan Lucas
645977f148 add scroll to focus 2023-08-10 22:41:48 -04:00
Ruan Lucas
aa3dd14bfc add locked focus 2023-08-10 22:24:55 -04:00
Wojtek Figat
f5f948ea4c Fix culling artifacts in animated model preview in Editor 2023-07-14 12:17:21 +02:00
Chandler Cox
a0bb3f2995 Add light debug view flag to draw light shapes 2023-07-07 17:32:46 -05:00
Wojtek Figat
96589557b3 Fix access level 96a1f20bee 2023-06-28 20:09:18 +02:00
Wojtek Figat
bb9711277a Cleanup code from #1213 2023-06-28 16:27:42 +02:00
PhyresiCompany
fe8260fe14 Window improvements with a new approach 2023-06-27 19:58:37 -03:00
6a1552505e Fix sluggish EditorViewport camera movement with high DPI
Flooring the mouse delta values seems to drop slight movements in
viewport when screen DPI is high.
2023-06-18 21:23:02 +03:00
Wojtek Figat
80e6853f44 Merge remote-tracking branch 'origin/master' into 1.6
# Conflicts:
#	Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs
2023-05-08 22:22:32 +02:00
Wojtek Figat
8edc154501 Fix UIControl linkage to Prefab window when creating UI within prefab Editor
#1007
2023-05-08 19:22:23 +02:00
Wojtek Figat
71a5d56105 Add support for importing skeleton-only as Skinned Model (eg. from animation file to have skeleton for retargeting) 2023-05-04 15:43:44 +02:00
Wojtek Figat
896f75b789 Add skeleton nodes names debug drawing in Editor preview when enabled 2023-04-29 12:10:15 +02:00
Wojtek Figat
12f5157bfb Add debug drawing selected skeleton node in Skinned Model window viewport 2023-04-26 17:28:58 +02:00
Wojtek Figat
390460907d Merge remote-tracking branch 'origin/master' into 1.6
# Conflicts:
#	Source/Editor/Scripting/CodeEditors/VisualStudioCodeEditor.cpp
#	Source/Tools/Flax.Build/Deps/Dependencies/OpenAL.cs
2023-04-22 18:59:41 +02:00
Wojtek Figat
d719ef8d03 Fix crash when reimporting audio clip while it's being played 2023-04-20 10:56:57 +02:00
Wojtek Figat
6ec35e5175 Add audio clip preview refresh on asset reimport in Editor 2023-04-20 10:50:29 +02:00
Wojtek Figat
787414451e Add current playback position preview with seeking functionality to Audio Clip window in Editor 2023-04-19 15:17:01 +02:00
Wojtek Figat
12f4dc74d2 Optimize default C# stdlib references to prevent using jit-ed features in a game assembly 2023-04-01 23:34:05 +02:00
Wojtek Figat
74758f5380 Merge remote-tracking branch 'origin/master' into 1.6
# Conflicts:
#	Source/Tools/Flax.Build/Build/Builder.Projects.cs
#	Source/Tools/Flax.Build/Build/Plugins/NetworkingPlugin.cs
2023-03-14 11:52:41 +01:00
Wojtek Figat
086c2f155d Fix error when using nested Visject Surface context during State Machines editing in Anim Graph 2023-03-13 15:39:36 +01:00
Wojtek Figat
0270772463 Merge remote-tracking branch 'origin/master' into dotnet7 2023-02-06 10:02:13 +01:00