Quantcast
Channel: Questions in topic: "behind"
Browsing latest articles
Browse All 97 View Live

Issue 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 Article



call 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 Article

Gun 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 Article

Let 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 Article

3D 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 Article


Find 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 Article

Particles 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 Article

Mirror 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 Article


Third 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 Article


GUI 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 Article

Object 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 Article

Texture 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 Article

Transparent 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


Camera that sits behind player

Hi Everyone, I'm trying to find a way to have a camera follow the player but sit behind them whilst able to rotate with the player. Dragon Age style camera wouldn't be too far from the mark.. So far,...

View Article

Destroy GameObject behind the Main Camera

Hi guys, I made 1 straight road where the character with Main Camera moves only forward. What I'm trying to do is to destroy all the objects behind the Main Camera without using Occlusion Culling....

View Article


Hide GUIText when GameObject is behind Camera

How would you go about hiding the GUI text when the GameObject is behind the main Camera? Here's an example. ![alt text][1] The temp S button on the bottom right enables and disables the object names,...

View Article

Disable behind button zone

I'm doing RTS game type , I have buttons to select what kind of soldier you want, then you must click in the terrain to spawn. My problem is when I click in the button, it spawns behind the button like...

View Article


How to make additive-shaded particles appear behind sprites?

I have particles emitter located behind some sprites and with a layer set also to be behind of sprites. If i choice diffuse shader for particles everything goes right but whenever I set any shader with...

View Article

3D Text Component hide from behind

Hi, Is there a way to hide a 3D Text Component that is in "air" when the user look from behind? I'm not talking to hide when is behind an element like here:...

View Article

Disable GUI Buttons behind other GUI

I have a menu with different GUI Buttons, but when the menu scene is loaded, there will be show up a window in the centre of the screen. With a button to close the window. No my problem is, if the...

View Article

Unity 5.0.1, GUI text always displays behind game objects

Just updated to the newest version on Unity. I've just started working on a 2D project. I've been trying to add some GUI text but it always displays behind the game objects. After adding the new GUI...

View Article


Certain Materials visible behind objects

Hello, I want my character visible (with some kind of color modification) behind objects so I wrote a shader with ZTest Greater and ZTest LEqual. It works but the problem is that my character is made...

View Article


My clone objects behind background

Okay basically I have two canvas's one which is my menu canvas (which is not the problem ) the other is my background canvas (which is ) I have clone objects that moves in and out of my 2d game but...

View Article

Text component behind sprite

Hello! I am having problems with the Text component. ![alt text][1] [1]: /storage/temp/57937-unityanswers.jpg I'm not sure why, but the text seems to be below the sprite. Any help would be appreciated!...

View Article

Rotate around an object to its direction of velocity (C#)

Right now I am working on a 3D camera that is orbiting horizontally around the player. The player is a RigidBody rolling sphere. The player can freely rotate the axis horizontally but when there is no...

View Article


Camera Follow Behind A Rolling Ball

I have a player that consists of a standard Unity 3D sphere, with a rigidbody, and a robot/player that sits on top of that ball. The ball rolls and the player follows. The player on top rotates left or...

View Article

How to make ui on top of other ui

Hello! I am having a problem with the position of UI. I have an inventory system. And i am using a grid layout to organize slots. And i am parenting "Item" game objects to the slots. And. When i drag...

View Article

How to make sprite move behind part of tile

I'm trying to recreate Petalburg city from Pokemon Emerald as practice for working with Unity2d. I got most of the collision set up but I can't seem to get below to work. https://imgur.com/a/9zOUP5g...

View Article

GameObject behind the background

I'm making a 2D game and I've never used Unity before. So I created a grid from a script and it was showing prefectly. Then, I decided to add a background and now the grid is not showing up(I think...

View Article



Text Mesh Pro UI element goes behind a gameobject?

I don't know why, and how, but it just happens. "HowItShouldBe.png" shows you what I want to do. "HowItIs.png" is how it behaves now. So the text, that is going under everything (in "HowItIs.png") is a...

View Article
Browsing latest articles
Browse All 97 View Live




Latest Images