Skip to content

Conversation

Yozhy
Copy link
Contributor

@Yozhy Yozhy commented Jun 6, 2024

This implements duplicating entities by holding alt and dragging an entity as described in #74.

The extra check for the DoNotPersitsOnSaveAttribute is necessary, because saving those components makes the entire world fail to deserialise (which is also why I had to add it to EditorTween). Maybe this check should actually be in hook.AddEntityWithStage, since I can't see why those components should ever be added to the asset.

Yozhy added 4 commits June 6, 2024 00:32
For some reason IsSelectedComponent, RenderedSpriteCacheComponent and EditorTween on the cloned entity cause it to not be deserializable, corrupting the entire world.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant