Jump to content

Canvas2d, updating a primitives isVisible when canvas is WorldSpace?


thrice
 Share

Recommended Posts

Simple question:

How do I update a primitive property which is part of a canvas2d instance? (Specifically isVisible, haven't checked other properties yet).

http://www.babylonjs-playground.com/#YQV9DH#1

Open up console, try setting child.isVisible to false, note it's always true.

I dug around in the codebase, but couldn't figure out:

1. if this is a bug

2. if I'm doing something wrong that is causing the property to be frozen (pretty sure not the case anymore since I was able to reproduce what I was seeing in my project in playground above).

3. if there is a way to clear the cached property, what is the appropriate public method to do so with, and can I run a dirty check on the entire thing or do I need to flush each specific property I want changed?

@Nockawa

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...