Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

Unity LAN Multiplayer Warning Message

This may be hard to answer since it's probably code specific. But I'll give it a shot anyways. I get this warning message: "Receiving state for an object whose network view exists but the observed...

View Article


Idle gameobjects within spawned trigger wont set trigger off

I have a trigger that is always inactive until certain moments in gameeplay. During these moments it will be enabled. When it's enabled it sets it's position to the player and then makes a list of all...

View Article


Mouse click move (not follow the cursor!)

Hi, I'm totally new to Unity and "almost new" to programming in c#, so don't be mad at my incompetence :) I made this little script to make my character move RTS-like - I click somewhere in the screen,...

View Article

How to Create a Multi Floor Mini Map

I will need to create a Multi Floor Mini Map for a 11 story Building. I will need to have the Mini Map change from the First floor to the second and so on until you reach the top floor. I have been...

View Article

simple android swipe controls for level selection?

So I am having serious troubles getting any form of swiping to be detected. All I want to do is transform an objects x value +-1. This is for a menu that would look like most polular mobile level...

View Article


Destroy a Game object on collision and add it to my Gui???

Anyway to collide with an object and then make it add 1 piont to my gui like a score like for money for example? I already asked this question but I guess it doesnt show up when i click on my name so I...

View Article

How drag a block along Z-Axis and keep it under the mouse?

With the below code, I am able to click and drag an object, restricting said objects transforms to only X and Z. The issue is that when you drag the cube towards the edges of the screen, the object...

View Article

Fixed Spawn Amount

Ok, so i've got a script which is applied to different object which tells it to spawn cubes when a particle hits the object. So I've got this script: var ThePlace : GameObject; var hasportal : boolean;...

View Article


How do you stop objects from floating into space?

Hello, I am a beginner at Unity and started to make my first 3D project with it. It's an FPS game so I placed a First-Person controller in the world but when I ran the program, everything I place in...

View Article


Camera recoil Help

Im working on camera recoil for my game and i found a really nice mathematical formula([Formula][1])simulating recoil in a good way. The problem is that im a scrub and dont understand the code well...

View Article

8 Directional sprite in 3d world, how to retrieve angle?

I'm trying to do an 8 directional sprite in a 3d world like Doom. I managed to get it almost wworking, but my script is not very precise as ti try to retrieve absolute angles, and if the player move...

View Article

Edit variables in script

Hey all! For my game I have many characters with different stats such as damage, speed etc... and I wanted a way to make the stats easier to access. So I created an inspector GUI which displayed the...

View Article

Use an integer as an enum?

hi, all! I want to set up a rotation variable, but I don't want all options available to the user. I decided 0, 30, 45, 60, and 90 would be the only available options. I thought it would be nice to set...

View Article


Can you help me make this code turn smoothly?

I have two states in my Follower script - random wander, and following the player. When it wanders at random, it jerks at sharp angles to make turns. However, following the player it moves smoothly...

View Article

Draw Camera Frustum

Is there an editor gizmo to keep the camera frustum drawn even when the camera is not selected?

View Article


Controll squeeze of rigidbody between static collider and kinematic rigidbody.

Hi. Is there a way to detect and controll if a rigidbody is beeing squeeze between a static collider and a kinematic rigidbody? This is my setup: I got a nonkinematic rigidbody as player. It lives...

View Article

Polymorphism question for my custom class

Hi all, I have used polymorphism in the past, but not with anything too complicated. This time, I have a class which stores a bunch of info about the object I pass into it, and I wrote a very similar...

View Article


How to put limits in Z?

Hello Everyone, I'm trying to move one object with the mouse, now my script is working, but I want to put limits in Z, because if I keep moving my mouse or cursor the 3dbject vanish from the screen....

View Article

How can i destroy enemy when i see it?

I work on horror fps game and i want to destroy enemy when i see it. In other world destroy the enemy when it is appear in camera screen?

View Article

Weird GUI Error! Working To Deadline

Im getting an error saying I can only call GUI functions from within GUI, but it is! function OnGUI () { GUI.skin.font = fontBig; GUI.Label(Rect(10,10,200,100),"Round " + round);...

View Article
Browsing all 171066 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>