Skip to content

Add animation inheritance #9802

@theraot

Description

@theraot

Describe the project you are working on

A 3D third person game with souls inspired melee combat.

Describe the problem or limitation you are having in your project

  • I want to add tracks to the imported animations in way that their link to the imported asset is not broken, so I can import a new version of the animation when the animator makes a correction. However, I do not want to lose my work when I modify these animations and I need to import a new version when that happens.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

I want to make an animation that extends another animation. That is, I want to make an animation defined to include all the tracks of another animation but can also have additional tracks.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

The Animation class would need a way to refernece a parent Animation and the animation player will include its tracks during playback. The tracks of the included animation should also be included in the animation panel, but be readonly.

If this enhancement will not be used often, can it be worked around with a few lines of script?

We can have an animation player reference another animation player.

Is there a reason why this should be core and not an add-on in the asset library?

Since we have a workaround this feature is not needed in core per-se. In fact, I have completed games in Godot where I have used said work around multiple times with no big issue.

Yet, it is a recurrent need, and it would be good to have support in core for ease of use.

Futhermore, it would make easier the setup for #9712 - See also: #9801

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions