Forum rules - please read before posting.

Object:Visibility doesn't work for nested sprites

https://adventurecreator.org/forum/discussion/71/solved-object-visibility-not-working

Is the only way to make the nested Sprite work with Object:Visibilty is to drag them in the parent hierarchy?

Comments

  • You can check Affect children? in the Object: Visibility Action, but it'll set all Renderer components it finds in the hierarchy to the same visibility state.

    To set the visibility of a specific sprite, assign it directly in the Action or rely on animation.

  • It doesn't work. It is set like this

    Room
    ....Name
    ........Background

    Both room and name are visible from the start. Changing Background visibility via Object:Visibility doesn't have any affect. Affect Children is selected.

    For the time being, I have created a custom action which toggles the SetActive of the background.

  • If you're assigning Background directly in the Action, you don't need to check Affect children? because it has none.

    I would recommend relying on animation, however.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.