Commit Graph

204 Commits

Author SHA1 Message Date
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
marc audy
3f843e793c Fix/silence PVS warnings
#rnx

[CL 30663400 by marc audy in ue5-main branch]
2024-01-17 13:36:58 -05:00
aris theophanidis
1b845cc9c3 Improvements in navigation includes
Removing Actor.h from NavigationTypes.h
Removing NavigationQueryFilter.h when unnecessary in headers
And additional non-unity build fixes
#rb Maxime.Mercier

[CL 30621909 by aris theophanidis in ue5-main branch]
2024-01-15 13:31:49 -05:00
yoan stamant
67c4a8f7ac [SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen
#rb francis.hurteau

[CL 30410807 by yoan stamant in ue5-main branch]
2023-12-20 08:17:55 -05:00
justin peterson
fe10e8a1ec [Backout] - CL30398852 - CIS Stage Warning
[FYI] Yoan.StAmant
Original CL Desc
-----------------------------------------------------------------
[SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen, francis.hurteau

#virtualized

[CL 30406910 by justin peterson in ue5-main branch]
2023-12-19 19:47:10 -05:00
yoan stamant
649766d866 [SmartObject] added config to clear world preconditions for client builds
#rb mikko.mononen, francis.hurteau

#virtualized

[CL 30398918 by yoan stamant in ue5-main branch]
2023-12-19 12:59:33 -05:00
mikko mononen
60a5dffa2d StateTree/SmartObjects: fix incorrect use of EFieldIterationFlags::None which prevents inherited struct's properties to be visited.
#rb Mieszko.Zielinski

[CL 30208750 by mikko mononen in ue5-main branch]
2023-12-08 07:31:01 -05:00
christopher waters
86af3ce99d Fixing various header only compile errors.
[CL 30138626 by christopher waters in ue5-main branch]
2023-12-05 17:55:30 -05:00
mikko mononen
e4b5036e07 SmartObject: Added per object definition data
- added definition data for the whole object
- added GetDefinitionData() & GetDefinitionDataPtr() for the SO definition and slot definition
- Renamed FSmartObjectSlotDefinitionDataProxy -> FSmartObjectDefinitionDataProxy (removed slot)
- Renamed FSmartObjectSlotDefinitionData -> FSmartObjectDefinitionData (removed slot)

[CL 30077219 by mikko mononen in ue5-main branch]
2023-12-04 07:36:52 -05:00
jonathan bard
85278e1fb3 Visual logger improvements :
* Added sphere visual logs
* Added "wire" variant of various visual logs (box, OO box, cone, cylinder, capsule, sphere)
* Added blueprint versions of most visual logs (box, OO box, cone, cylinder, capsule, sphere, arrow, circle)
* Take into account the log's color's alpha value when drawing visual logs (multiplied by the scene proxy's own alpha), except for text, as is tends to become unreadable
* Fixed oriented box debug renders, which didn't support rotations appropriately (they wouldn't match the wireframe version)
* Fixed cylinder debug renders which were always vertical (!)
* Skip visual logs with empty text in the visual logger window's tooltip

Misc :
* Deprecated the awful overload-based FVisualLogger::GeometryShapeLogf / FVisualLogEntry::AddElement API
#rb Yoan.StAmant
#tests editor

[CL 30047522 by jonathan bard in ue5-main branch]
2023-12-01 13:48:31 -05:00
mikko mononen
096756af13 SmartObject: Added claim priority which allows higher priority claims to override lower priority claims.
#rb Yoan.StAmant, Mieszko.Zielinski

[CL 30010180 by mikko mononen in ue5-main branch]
2023-11-30 02:26:33 -05:00
yoan stamant
5e375112b9 [SmartObject] added reasons to control the enabled states of smart objects:
- Gameplay tags are used to identify a reason
- Default reason "SmartObject.EnabledReason.Gameplay" is a tag (UE::SmartObject::EnabledReason::Gameplay) provided by the plugin and used by default if no other reason is specified
- Tags are converted to bit masks and stored as disable flags in runtime instance
- External systems can declare new Gameplay Tags for the specific needs. System currently allows 16 different reasons (1 default + 15 custom)
- A Smart Object  instance is considered disabled as soon as at least one reason is set
#rb Luciano.Ferraro, mikko.mononen

[CL 29989734 by yoan stamant in ue5-main branch]
2023-11-29 11:23:11 -05:00
yoan stamant
203a091b6c [SmartObjects] unified the global UE::SmartObject namespace
#rb mikko.mononen

[CL 29934918 by yoan stamant in ue5-main branch]
2023-11-27 10:57:29 -05:00
mikko mononen
cc737f3eef [SmartObject] Added method to update SO transform
- Added UpdateSmartObjectTransform() to allow to update the Smart Object location at runtime
- Change spatial partitioning Add() to take ref to the handle to avoid alloc when readding

#rb Yoan.StAmant

[CL 29884931 by mikko mononen in ue5-main branch]
2023-11-22 04:49:00 -05:00
luciano ferraro
1de869bdc3 Change debug color of SO in the gameplay debugger for enabled slots and disabled slots to be more different (lime green from green and dark from grey)
[FYI] Parker.Linn, Phil.Cole, Gael.Leger
#rb [at]Mikko.Mononen

[CL 29521066 by luciano ferraro in ue5-main branch]
2023-11-07 10:41:35 -05:00
yoan stamant
a788975f6b Fixed type conversion warnings
#rb mikko.mononen

[CL 27890994 by yoan stamant in ue5-main branch]
2023-09-14 15:23:22 -04:00
mikko mononen
2727e90210 SmartObject: Fix getting default step height for navigation capsule
[CL 27788962 by mikko mononen in ue5-main branch]
2023-09-12 09:09:26 -04:00
ben hoffman
04773d7a0d Add a Find Smart Object from Targeting System request to smart objects. The targeting system is often used for player interactions to determine what the player is "targeting", so being able to find the smart objects that a player is looking at will make using smart objects for player interaction easier!
#jira UE-188874
#rb Yoan.StAmant
#prelight 64f791edf140ae6e397ecdd3

[CL 27611983 by ben hoffman in ue5-main branch]
2023-09-05 16:59:33 -04:00
ben hoffman
8c35dff059 Add Find Smart Object functions that take in AActor's and avoid using the normal QueryBox.
This is more friendly to the UE Gameplay Framework and lets you pass in specific actor's that you case about. If you had to use a spatial query, then you may get results from objects that you don't explictly want if they are overlapping objects.

Add a function to check if the subsystem is running on the server or not to make doing some future replication checks easier

#jira UE-180500
#rb mikko.mononen

[CL 27597760 by ben hoffman in ue5-main branch]
2023-09-05 11:29:58 -04:00
mikko mononen
10294710ed SmartObject:Compilation fixes
-  Fixed recursive include from view model
- fixed checkf() in property helpers
- added GameplayTags as depedency for editor

[CL 27446829 by mikko mononen in ue5-main branch]
2023-08-29 10:35:35 -04:00
LouisPhilippe Seguin
2f9a525ef2 Fix wrong parameter in condition of checkf
#jira none
#rb trivial
#rnx

[CL 27441430 by LouisPhilippe Seguin in ue5-main branch]
2023-08-29 08:34:24 -04:00
mikko mononen
6c2279e57d SmartObject: Added outliner to asset editor
- Changed Smart Object definition slot data to contain GUI per data (allows to identify the data using ID)
- Added outliner to the editor, displays slots and definition data
- Made slots and definition data selectable in the details view
- Sync selection across details, outliner and 3D view for faster navigation

[CL 27440600 by mikko mononen in ue5-main branch]
2023-08-29 07:48:32 -04:00
ben hoffman
42fea863f2 - Add a ToString function for FSmartObjectClaimHandle in Blueprints
- Add a static accessor to an invalid FSmartObjectClaimHandle in blueprints so that you can easily set default values and compare handles to check validitiy.

#rb Yoan.StAmant
#rnx

[CL 27319965 by ben hoffman in ue5-main branch]
2023-08-23 16:55:48 -04:00
yoan stamant
7081abcce2 [SmartObject] replaced a check by verify since we always need the action to be performed
#rnx
#rb trivial

[CL 27284664 by yoan stamant in ue5-main branch]
2023-08-22 16:22:34 -04:00