Commit Graph

480 Commits

Author SHA1 Message Date
thomas sarkanen
d708b24c66 Anim node references
Added the abiity to tag and retrieve any anim graph node (similar to how we could reference linked anim graph nodes previously).
Ported linked anim graph nodes to use the new system
Added the ability to reference any anim graph node by tag (via a new custom node, spawnable from the context menu, with the appearance of an actor reference in a level blueprint)
Added tag display and editing in the bottom-right of anim graph nodes
Added new override point to SGraphNodeK2Var to allow for title widget parameters to be overriden by child classes

#jira UE-126286 - Anim node functions: Add anim node references
#rb Jurre.deBaare

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 17472894 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17472913 by thomas sarkanen in ue5-release-engine-test branch]
2021-09-09 11:42:21 -04:00
aurel cordonnier
7f517562d5 Merge from Release-Engine-Staging @ 17438845 to Release-Engine-Test
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17439044 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-06 12:23:53 -04:00
thomas sarkanen
fc7a8f1fc8 Function library support for member reference customizations and anim node functions
Also fixes missing error when using a non-thread-safe function call on an anim node
Also exposes CreateNodeFunctionsWidget on base anim graph node widget so that non-derived types can use it

#jira UE-124986 - Users Can Change Anim Node Functions to Non-Thread Safe
#rb Jurre.deBaare

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 17437637 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17437664 by thomas sarkanen in ue5-release-engine-test branch]
2021-09-06 08:02:54 -04:00
thomas sarkanen
06f10fad65 Initialize Sematics
Added 'initial update' concept and a seperate tracker via node relevancy subsystem to track it.

#ROBOMERGE-SOURCE: CL 17387331 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17387349 by thomas sarkanen in ue5-release-engine-test branch]
2021-09-01 11:27:56 -04:00
thomas sarkanen
bbdd9ec262 Fix load ordering dependency with parent->child hierarchies of anim BPs
In the case where child clases are PostLoaded() after their parents, incorrect node data can be assigned to the class causing OOB access. This fix switches the init of the node data to be lazy/latched, so subsequent subclass loads dont overwrite parent class node data

#jira FROST-4098
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 17386060 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17386077 by thomas sarkanen in ue5-release-engine-test branch]
2021-09-01 09:58:57 -04:00
thomas sarkanen
9296c2ffe1 Fixed crash when editing callsites for event graph property accesses
#jira UE-124719 - Assert occurs when selecting Call Site options other than Automatic or Thread Safe within a Property Access node

#ROBOMERGE-SOURCE: CL 17368301 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17368323 by thomas sarkanen in ue5-release-engine-test branch]
2021-08-31 10:58:13 -04:00
timothy daoust
1c1c0d2c94 Show mirror node in animation blueprint if no compatible mirror data tables exist
#jira UE-121511
#rb jurre.debarre
#preflight 6127bd80c068e50001c1d7ce

#ROBOMERGE-SOURCE: CL 17323478 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17323496 by timothy daoust in ue5-release-engine-test branch]
2021-08-26 14:42:26 -04:00
andriy tylychko
6bf3101dcd deprecated FTicker and family and replaced by thread-safe FTSTicker
#jira UE-120090
#rb francis.hurteau


#ROBOMERGE-SOURCE: CL 17176325 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17176374 by andriy tylychko in ue5-release-engine-test branch]
2021-08-16 11:09:22 -04:00
zousar shaker
d55f79222e Wrapped ObjectPtr upgrade refresh for Engine + ShooterGame
#rb none
#preflight 60f6411c35476b00018dd12c

#ROBOMERGE-SOURCE: CL 16892864 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16892876 by zousar shaker in ue5-release-engine-test branch]
2021-07-20 00:24:38 -04:00
koray hagen
2eb9f8dfcd Gameplay Anim Gym and Pose Warping project cleanup. Tuning and improvements for distance-based play rate adjustment in motion matching.
#rb Aaron.Cox, Braeden.Shosa
#preflight 60f5dfe07eff4a000112bd91

#ROBOMERGE-SOURCE: CL 16889250 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16889277 by koray hagen in ue5-release-engine-test branch]
2021-07-19 17:25:01 -04:00
thomas sarkanen
d27ce9ae95 Removing Initialize and Evaluate functions
For now, removing these as their semantics are due to change
Also converting Update and Become Relevant functions to use more-devived-typed update context (less casting required)

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771205 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771237 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:31:18 -04:00
thomas sarkanen
fea7b70391 Fixed crash drag/dropping a sequence player into a template anim BP
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771196 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771228 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:31:04 -04:00
thomas sarkanen
1eeb3f489b Fix crash when compiling-on-load a graph that contains NULL nodes
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771191 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771221 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:30:55 -04:00
thomas sarkanen
1569535443 Fixed metadata preventing new bindings being created
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16755786 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16755789 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-23 08:25:24 -04:00
thomas sarkanen
cc29d26b6f Display whether anim node properties are dynamic in the binding menu
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16755373 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16755379 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-23 06:38:03 -04:00
thomas sarkanen
6153d306e8 Fixed warning when linked anim graph node pins are connected
#jira UE-118583
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16743757 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16743763 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 11:31:18 -04:00
jurre debaare
fab69e6d08 Ported project specific scriptability UFunctions to Engine:
- SetPreviewSkeletalMesh to UAnimationAsset and UAnimBlueprint
- Functionality to retrieve UAnimationGraphs and UAnimationGraphNodes of a specific class from UAnimBlueprint and UAnimationGraph respectively
- Functionality for pose driver/asset scripting

#jira UE-117797
#rb Thomas.Sarkanen
#preflight 60d075e32ab218000115936a
#preflight 60d1a3eaa819040001397a52

#ROBOMERGE-SOURCE: CL 16741838 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16741845 by jurre debaare in ue5-release-engine-test branch]
2021-06-22 08:26:20 -04:00
thomas sarkanen
78d17cb897 Fix error reporting for dynamic values that are not exposed on pins
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16739973 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16739975 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 04:46:11 -04:00
thomas sarkanen
da77f53ebc Improvements to anim node function calls
Split 'node context' into an 'evaluation context' and a 'node reference' type and updated regular function signatures when creating node functions. This way we can seperate concerns (and potentially reference anim nodes standalone in the future).
Moved function caller code into function ref file to stop AnimNodeBase bloat.
Fixed functions not being called on root nodes.

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16727107 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16727111 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-21 07:54:47 -04:00
thomas sarkanen
665afc556c Fixed being unable to open newly-spawned empty blend sapce graphs
#jira UE-118296 - Unable to open newly spawned Blend Space Graph nodes
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16705828 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16705837 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-17 12:08:56 -04:00
thomas sarkanen
cecebd0cf8 Anim blueprint encapsulation improvements
Adds 'template' anim BP concept. These anim BPs have no TargetSkeleton and as such cannot have direct references to animations placed inside of their anim graphs
Adds function call support from anim nodes. All anim graph nodes can now call functions when initialized, updated, evaluated or when they first become relevant.
Relevancy is established using a new FAnimSubsystemInstance_NodeRelevancy which tracks nodes in a local map, per UAnimInstance, if nodes require it.
Functions are displayed on the node if bound, and in the details panel.
Added a new override point to FAnimSubsystemInstance to allow for WT init.
Moved FMemberReference customization into a public header so it can be used on anim node functions.
Wrapped functions up into FAnimNodeFunctionRef structure so they can be re-used more effectively. Converted CallFunction node to use them.
Added a couple of simple BP function libraries to demonstrate the use of the new FAnimNodeContext (this is intended to be a generic way of exposing FAnimNode_Base types to script without the node types themselves having to be known to script directly).
Added the ability to set exposed properties as 'always dynamic' so they appear in mutable data rather than being merged into constants. This allows for the anim node data API to be changed to be less strict (and more script friendly). Now values can be set in mutable data (via GET_MUTABLE_ANIM_NODE_DATA_PTR) and attempted sets to constant data can be ignored and reported to client code.
A few minor crash fixes with edge cases (inc when trying to open an asset editor fails because of a missing skeleton/cancellation).
Also fixes an issue where literal linked anim graph/control rig/custom poroperty node inputs didnt get copied

#rb Jurre.deBaare,Aaron.Cox

#ROBOMERGE-SOURCE: CL 16703644 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16703653 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-17 08:59:23 -04:00
patrick boutot
8c1e03e9f8 Slate: Convert SButton attributes to SlateAttributes
#rb vincent.gauthier

#ROBOMERGE-SOURCE: CL 16673611 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16673625 by patrick boutot in ue5-release-engine-test branch]
2021-06-15 10:53:29 -04:00
thomas sarkanen
a8fc96c94a Fix asset player names and 'empty' players not appearing in context menus correctly
Also fix asset references persisting when applying a property access binding

#jira UE-116509 - Unable to create empty Blend Space Graphs in the Anim Graph
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16657336 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v833-16641396)

[CL 16657350 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-14 08:23:08 -04:00
timothy daoust
13583ddc3c Added the ability to drag layers to create a linked anim layer node
#jira UE-81805

#rb thomas.sarkanen

#ROBOMERGE-SOURCE: CL 16594838 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16594859 by timothy daoust in ue5-release-engine-test branch]
2021-06-08 17:58:38 -04:00
timothy daoust
0d26966f09 Fix Non Unity compile errors caused by changes to AnimStateNodeBase
#rb aaron.cox

[CL 16553194 by timothy daoust in ue5-main branch]
2021-06-03 17:05:43 -04:00