engine
engine copied to clipboard
Can’t clone or instantiate GSplatComponent from the template
Project to reproduce: https://playcanvas.com/project/1254555/overview/splat-template-clone
When trying to instantiate a template that contains a GSplat Component like below, an exception is thrown.
// Attempt to copy entity
const templateInstance = this.app.root.findByName("Splat template");
const gate = templateInstance.clone();
// Attempt to instantiate template
const template = this.app.assets.get(195964191)
const gate = template.resource.instantiate();
If the GSplat component is substituted for a Render Component, it works. I would expect the same behavior.
Related forum post: https://forum.playcanvas.com/t/cant-clone-or-instantiate-gsplatcomponent/36948