Page 1 of 1

Can Noesis be attached to the camera only? (Unity)

Posted: 09 Jul 2023, 12:11
by ErsanUityGUI
Hello,

I just want to use rive animation but it stays in the background, what should I do? (star animation)

Image

Re: Can Noesis be attached to the camera only? (Unity)

Posted: 10 Jul 2023, 12:20
by sfernandez
Hi,

Inside a XAML rendering order is determined by the the order in the UI tree: children will be rendered on top of their parents, and the latest child will be rendered on top of previous children.
So if you have several RiveControls, and you want the stars rive animation to be on top of the rest, it just needs to be added after the other children:
<Grid>
  ...
  <noesis:RiveControl Source="robots.riv"/>
  <noesis:RiveControl Source="stars.riv"/>
</Grid>
Is this what you are asking for?

Re: Can Noesis be attached to the camera only? (Unity)

Posted: 11 Jul 2023, 20:37
by ErsanUityGUI
THX! But other objects are SpriteRenderer or UI element.
Hi,

Inside a XAML rendering order is determined by the the order in the UI tree: children will be rendered on top of their parents, and the latest child will be rendered on top of previous children.
So if you have several RiveControls, and you want the stars rive animation to be on top of the rest, it just needs to be added after the other children:
<Grid>
  ...
  <noesis:RiveControl Source="robots.riv"/>
  <noesis:RiveControl Source="stars.riv"/>
</Grid>
Is this what you are asking for?

Re: Can Noesis be attached to the camera only? (Unity)

Posted: 12 Jul 2023, 11:15
by sfernandez
You mean you want to mix Unity UI elements with NoesisGUI elements?
Depending on what exactly you want to achieve, you can probably use camera stacking to decide the rendering order of the different layers.