Detect GameObject Blocked
I made a model that can be dragged and rotated with mouse. And then I add some tag to the model. So whenever the model rotate, the tag rotate with it. I wonder how we can detect if a tag is rotated...
View ArticleGUI text appears behind drawn texture.
My GUI text appears behind any and all drawn texture. What can I do about this?
View ArticleHow to make my jetplane fire follow the correct rotation
I have this jetplane that create some fire behind it you know and i add the fire in a prefab and once i move the jetplane it doesnt follow the rotation of the jetplane I set the fire to go down but...
View ArticleCharacter Controller / Own Camera Script Problem
Hello everyone, I wrote a custom third-person camera script. Right now it is very simple and it works. I changed from a rigidbody to the character controller because of jittering problems, and i dont...
View ArticleIs there a way to do this effect/shader?
hi all, i'm trying to do this kind of shader, some kind of blending to background without rendering any object behind the one with this shader, is this possible? i put some screenshots of the effect i...
View ArticleObjects are drawn behind others
Greetings, I use a second camera to draw certain objects on top of others such as guns and bullet marks to prevent them from going through the wall and to prevent z-fighting issues. It works well and...
View ArticleDrawing line behind character
Hey, how do you draw a line behind the character. There should be a line on the floor so you can see where your character moved along. Thanks in advance.
View ArticleIssue with Enemy reticles
Okay this is a bit difficult to explain, But I've got two issues happening in this scene. I have two viewports, one for player 1 and one for player 2. Within each player, I have a reticle that follows...
View Articlecall in script if enemy comes from behind or from front
hi! i want in a game my enemy (navmeshagent) to come towards me if he is 65 units away from me and in front of the camera. but if he comes from behind, he should just pass me by. i do not know how to...
View ArticleGun lag behind camera
I know there have been many questions and answers to this but non of them actually achieve what I'm trying to do. How can I make my gun (without animations) to lag behind the camera, like it takes my...
View ArticleLet Click go through GUI
I must be the first person to ask this, since I only see people asking the opposite... I'm drawing my GUI this way: function OnGUI() { GUILayout.BeginArea (Rect(posX, posY, szX, szY)); GUI.Box(Rect(0,...
View Article3D Text not visible through texture2D (behind it).
Hey guys I have a bit of a problem. Basically I have a texture that is set to cover my full screen on start up. This is perfectly fine and does what I want (fills the screen no matter how much you...
View ArticleFind what object is ahead of other
I have two game objects heading in relatively the same direction. How can I figure out which one is in front and which is behind? For example, if you look at the image, B would be considered behind and...
View ArticleParticles are rendered in front of tree billboards
I have searched thoroughly and have been able to find a solution that draws particles correctly relative to tree billboards. One suggestion was to set the renderQueue for the particle materials to...
View ArticleMirror a Vector3
I want my Enemy to teleport behind me when i look at him, so it's like an ambush or something else. I tried to "mirror" my vector3 with the FirstPersonController as center, but it didn't worked. Does...
View ArticleThird person camera and Object
Hi all. i have a question for my rpg game. If i use Third person camera, and the charater are example in wall. The player can see behind wall. how can I avoid that the camera does not pass through the...
View ArticleGUI behind Camera - WorldToScreenPoint
Hey there, I'm having a rather pesky problem and I just can't figure out how to fix it: I'm drawing labels 'over' objects in 3D Space using GUI.Box and...
View ArticleObject follow behind other object, wont stop spinning
I want to keep the yellow square in the same position relative to the purple box. So in this case to keep behind it, and it works. But the yellow square wont stop spinning around it's own Y axis...
View ArticleTexture behind button
I'm using a button that use texture with same dimension. When I make rollover the texture remain in front of button. There is a way to put texture behind button and have right effects?
View ArticleTransparent faces renders behind non-transparent. WTF?
I'm making game in PSX/N64 style as challenge to myself (*totally* unrelated to that I suck as modeler combined with me wanting all my own artwork) so I'm limited with vertex amount I can use per...
View Article