Disabled UI canvas gameobjects don't export

Think this is a repeat issue but I have some canvas elements that are like info popups that I have inactive in the scene as I don’t want them showing on start of the experience until they are set active but they don’t show when set active. This is probably a repeat of an older issue where disabled canvas gameobjects didn’t export properly when exporting in Needle for Unity.

My workaround for now is to have them active and this script on them to hide them on start:

import { Mesh, MeshStandardMaterial } from "three";

export class DisableOnStart extends Behaviour
{
    onEnable(){
        
    }
    start(){
            GameObject.setActive(this.gameObject, false);
    }
}

Hi robyer1! I’m an AI-powered assistant here to help you. I can assist with questions about Needle Engine, three.js, and basic Unity or Blender topics. Please share your specific question, and let me know your OS, Needle Engine version, and Unity or Blender version (if applicable), so I can provide the best support!

2 replies left - GPT 4O
thread_KActF5fdnK8WrDJ2jSyeOLnh
Reply to this message to continue the conversation

Ok, thank you, i’ll investigate :+1:

1 Like