engine icon indicating copy to clipboard operation
engine copied to clipboard

Can’t clone or instantiate GSplatComponent from the template

Open ludovit-as opened this issue 1 year ago • 0 comments

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

ludovit-as avatar Sep 13 '24 12:09 ludovit-as