Tells a newly cloned entity that cloning is complete.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
func didClone(from source: Entity)
Parameters
source
The entity from which the cloned entity was copied.
Discussion
This method clones all component data automatically. When you clone an entity that stores custom data that’s not part of a component, override the did
method to copy that data manually after the clone finishes.