77 Commits

Author SHA1 Message Date
andrea botti
fd91ad7c1a [RemoteControl] Fix ensure hit with Text action
Fix Text action that hit an ensure when changing their value

#rb Juan.Portillo
#jira UE-208923

[CL 32496830 by andrea botti in 5.4 branch]
2024-03-26 00:49:34 -04:00
andrea botti
87348b53e1 [RemoteControl]
Fix automation Test failing

#rb jeremie.roy
#jira UE-206663

[CL 31568736 by andrea botti in 5.4 branch]
2024-02-16 11:59:42 -05:00
andrea botti
2cf25f64f0 [RemoteControl]
Array Customization for Path behaviour to add Input button

#rb Juan.Portillo

[CL 31291537 by andrea botti in 5.4 branch]
2024-02-08 10:09:41 -05:00
andrea botti
282ce74a02 [RemoteControl]
Fix:
- Instead of Emptying the RealProperties in propId now we only add newer ones
- Crash when creating a behaviour
- Crash when copying some Struct
- Blocked copy of ObjectProperty value in PropId Action to avoid crash (For example with the Material)
- Added copy for Struct only if Allowed (Color/LinearColor/Vector/Rotation)
- Crash when calling OnObjectPropertyChanged in Preset because recursive in some case
- Changed from AddLambda to AddSPLambda

#rb Matt.Chapman

[CL 30932763 by andrea botti in 5.4 branch]
2024-01-26 13:49:12 -05:00
steve robb
57ca754749 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30894744 by steve robb in 5.4 branch]
2024-01-25 14:17:31 -05:00
andrea botti
1e790cfd8d [RemoteControl]
Fix:
- PropId not always working correctly in Game
- Float property will be treated as Double
- Color property will be treated as LinearColor

#rb Loris.Rossi

[CL 30883791 by andrea botti in 5.4 branch]
2024-01-25 08:39:31 -05:00
andrea botti
d82f06ccfc [RemoteControl]
Fix:
- Block creation of actions that are not supported by PropertyBag
Since the function that returns the value type is private we have to use a workaround by creating a BagDesc and then retrieve the value type from that to check that it is not None.

#rb Juan.Portillo

[CL 30883092 by andrea botti in 5.4 branch]
2024-01-25 07:58:33 -05:00
andrea botti
daf4c5271a [RemoteControl]
Sub-Property Id

#rb Juan.Portillo

[CL 30721354 by andrea botti in ue5-main branch]
2024-01-19 13:21:33 -05:00
andrea botti
c5c3eb54be [RemoteControl]
Adding support for FVector2D Controller

#rb jeremie.roy

[CL 30624041 by andrea botti in ue5-main branch]
2024-01-15 16:06:36 -05:00
andrea botti
06444f17fc [RemoteControl]
Conditional will execute actions that changed their value if the action condition evaluate to true based on the controller value.

#rb Jean.Perrier

[CL 30597649 by andrea botti in ue5-main branch]
2024-01-12 13:05:37 -05:00
andrea botti
ca55822ef8 [RemoteControl]
Fix horde issue 412496: Undefined symbol

#rb Matt.Chapman
#jira UE-203394

[CL 30482714 by andrea botti in ue5-main branch]
2024-01-08 11:30:27 -05:00
jean perrier
8efd81cbcc [Remote Control] Adding Renew of Entity and Controller Guids when duplicating an embedded RemoteControlPreset.
Requirement:
The requirement of this comes from the "combo template" feature of Avalanche. As all the controller and entity values of different sub-level's embedded presets are combined in the same page, guid collisions must be avoided.

The combo template creation will fail if it detects guid collisions between the guids.

Feature:

When the parent asset (either level or bp) is duplicated, the embedded preset will renew the entity and controller's guids automatically.

If users want to create combo templates of existing assets that have guid collisions, the fix is to duplicate them.

This has been restricted to embedded presets only.


Implementation:

Entity Ids are used as index in several classes of the overall data structure (identified by inspection).

The UpdateEntityIds function has been added to propagate the re-indexing throughout the rc data structures.

New delegates have been added if propagation beyond the rc data structures are required.

#jira UE-203352
#rb Juan.Portillo
#rnx

[CL 30459707 by jean perrier in ue5-main branch]
2024-01-01 16:32:06 -05:00
andrea botti
bad95429f7 [RemoteControl]
Avoid Add Action button and drag and drop to add properties with warnings.
Fix behaviour conditions to either:
- All allow the property
- All don't allow the property

#rb Juan.Portillo

[CL 30459300 by andrea botti in ue5-main branch]
2024-01-01 08:54:30 -05:00
andrea botti
66e554fc0d [RemoteControl]
Add multi selection for Actions and support for multi-selection for the commands.

#rb Matt.Chapman

[CL 30453592 by andrea botti in ue5-main branch]
2023-12-28 09:09:08 -05:00
andrea botti
410dfd6998 [RemoteControl]
Update value option when right clicking an Action.

#rb Juan.Portillo

[CL 30290100 by andrea botti in ue5-main branch]
2023-12-13 08:05:19 -05:00
andrea botti
7246f0ba8f [RemoteControl]
Bind controller of type float/integer can now bind to vectors

#rb Matt.Chapman

[CL 30267016 by andrea botti in ue5-main branch]
2023-12-12 12:29:02 -05:00
andrea botti
3597cc6867 [RemoteControl]
Better error in RC, both for the Editor and the API.

#rb jeremie.roy, Simon.Therriault

[CL 30082923 by andrea botti in ue5-main branch]
2023-12-04 10:58:52 -05:00
jerome delattre
f8f54bca70 Relocate tests under "Plugin." to "Plugins.".
#jira UE-179877
#rb chris.constantinescu, rob.huyett, sean.sweeney, sebastian.lewicki

[CL 30022699 by jerome delattre in ue5-main branch]
2023-11-30 15:42:17 -05:00
andrea botti
5572d35fe6 [RemoteControl]
Adding multi selection.

#rb jeremie.roy

[CL 29637796 by andrea botti in ue5-main branch]
2023-11-10 08:41:08 -05:00
andrea botti
3a6759af19 [RemoteControl]
Fix FText hitting an ensure because the StructOnScope is not setting the Package in the PropertyIdAction

#rb jeremie.roy

[CL 29092787 by andrea botti in ue5-main branch]
2023-10-25 12:40:52 -04:00
andrea botti
7a873986b2 [RemoteControl] RemoteControl
New feature PropertyID and PropertyIdAction

#rb jeremie.roy

[CL 28088567 by andrea botti in ue5-main branch]
2023-09-21 12:02:15 -04:00
dario mazzanti
bc350e8881 [Remote Control] Remove Custom Controller execution on post load
Custom controllers added automatic execution on PostLoad (see https://p4-swarm.epicgames.net/changes/25874141).

This CL removes the support for that (given that the execution of controllers is non-deterministic), and gives the control back to the user.
This change also prevents issues related to unreliability, and assets being automatically modified/dirtied on scene load.

#rb Jeremie.Roy

[CL 27796590 by dario mazzanti in ue5-main branch]
2023-09-12 12:43:55 -04:00
andrea botti
85f88ff233 [RemoteControl] RemoteControlUI
Behaviour add button change, adding all behaviour and grey out the ones that can't be used with the specific controller

#rb jeremie.roy

[CL 27078624 by andrea botti in ue5-main branch]
2023-08-14 14:19:41 -04:00
robert manuszewski
d3991fec9b Fixing potential compile errors ahead of enabling TObjectPtr GC barrier
#rb trivial

[CL 26868625 by robert manuszewski in ue5-main branch]
2023-08-05 06:09:54 -04:00
dario mazzanti
3a513736f1 [Remote Control] Enums not properly supported in RCP
C++ and BP enum properties are handled differently, with the former not properly working with RC Controllers.

#jira UE-189659
#rb Jeremie.Roy

[CL 26610754 by dario mazzanti in ue5-main branch]
2023-07-26 12:33:00 -04:00