- Home /
Render Texture in Scene
Hey i want to know : 1 : how i can render a texture hover a object 2 : And when there are multiple render they move in sort they are not going to hover another texture
Like this ( HEALTH TEXTURE HOVER A CHARACTER ) :
Ok i realized , Its a GUI who calculate where the Object show on screen and then it show hover the calculated position
But now ... how to calculate it XD
You could actually make this a child game object of the object with health. I would not recommend a render texture for it, though! Seems like way too much effort to make and also way too much CPU/GPU time to be using at runtime for it to be practical.
$$anonymous$$aking it a child won't work. See here: http://unifycommunity.com/wiki/index.php?title=ObjectLabel , although that doesn't do anything about not hitting each other, which would be a little tricky.
Ah I missed the bit about not letting them hit each other... $$anonymous$$y apologies, hesa. Having something floating over a character's head is perfectly doable by childing, however. Is it scaling that makes you say that it won't work as a child, Eric?
No, it's because you don't want it to rotate with the parent. Also GUI objects can't be parented to regular game objects anyway.
Answer by hesa2020 · Jun 04, 2012 at 06:29 AM
OK I FOUND IT !!! I share my script there : HERE
http://forum.unity3d.com/threads/138538-$$anonymous$$ust-have-in-any-rpg-game-!!!!!!!!!!!!!!!!!!!!!!!!!!!!?p=943404#post94340 I'm not sure why this link is not working (sarcasm). Could You please fix it?
Your answer
![](https://koobas.hobune.stream/wayback/20220613072323im_/https://answers.unity.com/themes/thub/images/avi.jpg)