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

character wont Jump :(

okay so i've made some progress on my game but now i'm trying to get my character to Jump (with its own custom jump animation) but it does nothing, it walks and does all the other actions i've scripted...

View Article


After playing an animation, void Update() hangs

Exactly what it says in the title. The following script is giving me all kinds of headaches. The "update works" log stops working after the co-routine "works." Any ideas? void Update() { if...

View Article


Getting Variables From An Arbitrary Component?

I am familiar with the basic way of getting components by ASpecificComponent aSpecificComponent = (ASpecificComponent)transform.GetComponent("ASpecificComponent"); aSpecificComponent.anInt = 0;...

View Article

How do you save timer with PlayerPrefs?

Hello Everyone, I'm creating a survival game where a timer displays how long the player is currently surviving. The timer is working perfectly however I'm having some difficulties on saving it whenever...

View Article

client sends ID string to server list , the list size increases but the list...

Client script called FindGame public static string PlayerID=""; public string ID=""; void OnConnectedToServer() { print("Player ID is " + Network.player.ToString()); PlayerID=Network.player.ToString();...

View Article


How can I play two animactions at once, with one of the animactions looping?

Im making a rpg, and am trying to make a cut scene. I have a walking animation, and I want it to loop, while I make the character move to a new location using a animation I'll create in unity animator...

View Article

Creating A GUI health bar

First, I have to say that im a beginner scripter, please be patient with me thx :D. So, I tried to create a health bar for my player and I came up with this script : public int maxhealth = 100; public...

View Article

Shader texture blend performance

I'm trying to blend two textures by an amount relative to distance to some game object. Got it working well enough using a vert program to calculate distance and frag program to combine textures....

View Article


Unity Jet Wing Animations! Help!

Hello, I am currently creating a small jet simulator and wing animations. I created all the animations in Blender and exported them into unity using FBX. All of the single animations work such as Up,...

View Article


Can you make an animation have an event at the end where it plays another...

If anyone could tell me the script for that, it would be very much appreciated. ALso, (just as an afterthought)if an event at the end of the second animation made it so that it went back to the first...

View Article

Git and Unity - Scene not commiting script links properly

Currently We have our scripts sitting in a sub directory of Assets (Assets/Player Scripts/blahblah.js). I fixed some animation issues our game was having, then committed the changes. When my project...

View Article

VS 2013 w/ Resharper - Start(), Update(), OnGUI() is never used

Hey guys, I have VS2013 Professional and I have the Resharper PlugIn. I'm following a course to learn Unity and when I open a script from Unity it opens VS2013 correctly and I can edit the script and...

View Article

How to make IK interact with colliders.

Hellow, I am using Unity built in Inverse Kinematics to control my character hands with razer hudra. But the problem is that I cant make the interact with colliders and they just go throught all...

View Article


Whats the best way to implement different languages?

Hey :) so i'm working on a game project in unity. the next important step would be a menu where you can pick a language for the in game texts. whats the best way to implement a function like this? i...

View Article

How to Parent a Cloned Object to Another Cloned Object

So I'm working on a procedurally generated endless runner kind of thing, it's my first real Unity project. I have a plane that slides forward, and then instantiates another plane, then destroys the...

View Article


Can't Animate

Hi. I'm having a little trouble animating my character. I have two animations, Idle and Run, the latter starting when I use the vertical axis. I've only been able to make one animation loop or both...

View Article

why when i use Network.Disconnected my game had been exit forcefully?

void OnGUI() { if (Network.peerType == NetworkPeerType.Disconnected && DC == true) { ToMenu("Main"); DC=false; } if (Network.peerType == NetworkPeerType.Disconnected && DC == true) {...

View Article


Does Umbra support multiple scenes?

I have searched the forums and answers site, but have been unable to find a clear answer as to whether you can have multiple scenes, all loaded separately - not at the same time - with Umbra? I have...

View Article

FPS Controller with relative X/Z movement

I'm making a game where the player can walk on walls. I'm trying to achieve this by making the player a child to whichever wall he/she is walking on. This way, all rotation, gravity and movement of the...

View Article

Can we develop a game on Windows and then transfer it to Mac?

That's it. My friend and I are going to develop a game and he's the programmer and doesn't have a Mac. He's going to program the game on Unity for Windows and my question is if we can transfer the...

View Article
Browsing all 171066 articles
Browse latest View live


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