cloning-entities.md 619 B

Cloning an entity

You can find this sample in the tutorial project: MenuCloning entities

Explanation

This C# Beginner tutorial covers how to clone an existing entity and how to add that clone to the scene.

A cloned entity is an exact copy of an entity, which means that the Transform and all other components with their set values are copied too.

Cloning entities

[!Video https://www.youtube.com/embed/klcTyUDI1yg]

Code

[!code-csharpEntity]