Tagged Questions
Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.
0
votes
0answers
9 views
Animation not grounding correctly
first let me clearify, I'm very new to animations and in no way an expert. We have used a set of anims that came with our IK package (Final IK) we now need to move to other anims to support side step (...
1
vote
2answers
18 views
Unity3D position of 2D objects with size of Object
I'm making a 2D project in Unity3D.
I want to place an image in the right upper corner.
I've got this working, but ofcourse the image is falling of the screen for a part (and completely when I change ...
0
votes
0answers
10 views
(Unity C#) Rotating an object over time to a RaycastHit.point vector
I am trying to rotate a game object (a weapon) to point towards where the centre of the player camera is focused. I am raycasting forward from the centre of the camera (centreCast) and also from the ...
0
votes
1answer
16 views
I need some good Blender to Unity animator character controller tutorials
Finding a good 3rd person tutorial has been a real pain for me.
I'd perfer to find
3rd person controller
No root motion
Vertical AND Horizontal movement
works with Unity 5+
optional
Blender model ...
0
votes
0answers
7 views
Unity animator remove bool state for entire transition
i was creating animaton for my character , and i want to modify something to make the character look better , but unfortunally i need to remove the bool first from entire transition in the animator , ...
0
votes
0answers
5 views
Triggering an animation key manually added to the automatically generated animator controller on a button
I have a canvas parenting a panel, parenting some buttons. all the buttons have their own animators that i have automatically generated by clicking "Auto Generate Animation" in the button's Inspector ...
0
votes
1answer
25 views
I need my timer to go up every 30 seconds
I wrote code for a jackpot to increase from one date to the next, and it works beautifully. The client wants the numbers to stay put for a while, and then increase.
This is the code:
if (...
0
votes
0answers
10 views
How do I avoid scaling the animation when scaling the object?
I have made an animation in the Unity animation window. When root motion is disabled, the animation works, but when root motion is enabled, the object goes upwards instead of downwards as specified in ...
0
votes
0answers
11 views
UI text in Unity with Google VR
I am trying to make a UI text in the left upper corner that shows wins and losses. However, it doesn't appear. I have tried to make it world space and drag the canvas so it becomes a child of the GVR ...
-1
votes
1answer
27 views
UnityEngine.Camera doesn't contain definition for “active”
So I'm just trying to create a simple script in C# which will allow me to switch between two cameras, named Camera1 and Camera2. But I have run into the error UnityEngine.Camera doesn't contain ...
0
votes
1answer
36 views
Storing wins and losses locally in Unity
I am writing here as I have made a game in Unity where I want to store how many wins/losses a player has. The way I am thinking to do it is by putting 2 counters; One for every time a player wins, and ...
-3
votes
0answers
17 views
How create multiplayer turn based game in unity
I want to create game like poker by unet in LAN
In my game 3 player connected to server then server send number of cards to each player and player see own Scene contains Own Cards
like below picture
...
0
votes
1answer
17 views
Setting up a singleton class in Unity3d
I have spent a long time (4-5 hours) digging around as to why my version of the Breakout Unity Tutorial was not working. There where repeated errors of
NullReferenceException: Object reference not ...
-4
votes
0answers
27 views
ERROR : Null reference exception
I wanted to access two variables named "blocksleft" and "blocksLeft" declared in two different scripts named "LoadLevel_02" and "LoadWinMenu". So I grabbed them in the scriptnamed "DestroyBlue". But ...
0
votes
0answers
17 views
Problem with farm tractor physics on Unity 5
I have added tractor mesh and physics for it. The objects inspectors and tree are:
When I start "game" the result is strange:
GIF
Why? Hinge joints are working like spring joints and tractor is ...
0
votes
0answers
18 views
Object refrence not set to an instance of an object. (Only sometimes)
i have been working on a 2D SpaceShooter game on Unity in C# language, at first i was following the tutorial, but after it ended, i decided to expand the game, and change it the way i desire it to be. ...
0
votes
1answer
20 views
ERROR : Destroying assets is not permitted to avoid data loss
I want my gameObject named lvl_01 to destroy when I click left or right arrow key but it's keep showing this error "Destroying assets is not permitted to avoid data loss" instead of destroying that ...
-3
votes
1answer
24 views
How to code C# to allow one tap to cause the character to jump for Android device in 3d game
Is there a native unity 5 to implement one tap to have the character to jump.?
My game is 3d and I want to tap anywhere once or in the character.
I found a MobileTiltController as part of the ...
0
votes
0answers
19 views
“Analogue” Control of animation
New to animations and need a little bit of education :) I have a model of an object that has a generic animation. I would like to control that animation using an analogue trigger on the controller, ...
0
votes
0answers
8 views
Loading Unity Scene Asynchronously stacking hierarchy window with scene names
I am making a unity game in which I have a scene which loads other scene asynchronously. When looking the hierarchy window I came across this
Anyone can suggest why the scene themselves are present ...
0
votes
1answer
26 views
show hide button in unity using c#
I have 15 buttons on my screen at onClick event am fetching the button and hiding that button using
EventSystem.current.currentSelectedGameObject.SetActive(false);
now at the end i have to show ...
0
votes
1answer
35 views
NullReferenceException in StartCoroutine method
Maybe it's a repeated subject in the community but other answers didn't solved my question...
I tried as the tutorial: http://answers.unity3d.com/questions/11021/how-can-i-send-and-receive-data-to-...
0
votes
2answers
49 views
A* movement implementation not working properly
I'm working on a RTS project and I'd like to use the A* Project by Aron Granberg to navigate around obstacles, etc.
The problem is that the correct path is displayed in the scene, but the unit just ...
0
votes
0answers
20 views
How to make a Physics.Raycast detect a FPSController?
I am trying to make an AI that spins around until it sees the player, but it can only see walls and other objects, but completely ignores the FPSController. I tried adding a cube to the controller, ...
0
votes
3answers
60 views
Rotating camera based on player's rotation
I'm trying to have a camera rotate mirror the player's rotation, however, this isn't happening and the camera isn't rotating at all. Can anyone explain what I'm doing wrong and how to fix it?
public ...
0
votes
1answer
44 views
Is wireframe effect possible without geometry shader?
I am trying to write a shader that highlight the edge between each pair of vertices, much like the UCLA Wireframe Shader.
All implementations I came across require geometry shader support. I am ...
4
votes
1answer
316 views
Using Threads to create GameObjects
I have this game client which connects to the server and sends requests and getting responses.
I have created a separate thread for listening to the server. Based on the response from the server, I ...
1
vote
1answer
15 views
In Unity - Move a GameObject at Animator State
I want to move one of my GameObject to a different vector 3 position, when animator transit to a new state. How do I do it? Also there shouldn't be any delay.
1
vote
2answers
44 views
Load the prefab in the array by name in Unity
I'm using this line of code to select my level, and currently I have different scenes for each levels. I want to be able to reuse the same scene to change levels as well but I don't know how, here's ...
4
votes
1answer
52 views
Does Unity 5.4.3 supports backward compatibility with Unity 5.4.2?
I'm currently using Unity 5.4.2 for my video game project, however my friend who assists me in the project uses Unity 5.4.3 instead.
Does Unity 5.4.3 supports backward compatibility with projects made ...
0
votes
0answers
21 views
Unity 3D - Project Vector for throwing ball
New Struggling Game Developer here (I apologize)
I have a unity game set in 3D where I use touch screen to flick the ball into directions (Vector3.AddForce) but then my mentor tells me that he wants ...
1
vote
0answers
22 views
WebGL frame rate slows down after triggering javascript event
I am using Unity WebGL to host my game on a flask server and trying to throw a warning to the user whenever he tries to navigate away from the tab or mistakenly click browser's back button. Each time ...
0
votes
1answer
31 views
Minimum hardware requirements for developing for iOS and Android with Unity, Cocos2d-x and GameSalad on a Mac
I intend to create iOS and Android games. My main priority is to create 2D games. The software that I’m planing to use are Unity, Cocos2d-x and GameSalad.
I am a bit interest in the Mac Mini, ...
-1
votes
2answers
45 views
ERROR: MissingComponentException
I want my gameObject to play an audio clip when it collides with other gameObjects. So I attached a script named "ImpactSound" with it, but it's keep showing MissingComponentException: There is no "...
0
votes
0answers
15 views
Best action/move in managing repo file size in Git especially in bigger game projects? [on hold]
I was currently using the Bitbucket since it has 2GB repo size and lets you have private repo for free. Since the limit hits at 2GB and tried to reduce down the file size using BFG, along with its ...
0
votes
1answer
40 views
How to have random and different colors on multiple objects with one material?
I want to have one material applied to multiple objects that has a random color on each object. How can I achieve this so that I don't need to use a different material for every object? This is in ...
0
votes
0answers
11 views
Is there a way to determine the size (in bytes) of a prefab in Unity
Is there an easy way, even by some downloadable asset, to determine the raw size in bytes of a prefab in Unity? By this I mean, any materials, sprites, scripts, meshes, animations, etc. that might be ...
-5
votes
0answers
31 views
0
votes
0answers
11 views
Unity2D: Synchronsing Game start - Cross platform multiplayer game
I'm following this tutorial on Raywenderlich about creating a cross-platform multiplayer game, right now I am finally at the last part of the tutorial, but I'm stuck at synchronising the game start ...
-1
votes
0answers
17 views
Animations won't work in Unity
I've been working on an FPS, and none of the animations are working. I've tried everything, from trying new coding, to changing it from legacy.
What do I do?
0
votes
2answers
42 views
Unity - Stuttering character rotation
Am working on the controls and camera movement for my character. What I am trying to do is have the character head be able to rotate left and right and then when the head is rotated a certain amount, ...
0
votes
0answers
37 views
Unity Endless Runner Restart Scene
I just created an endless runner. Everything works fine on Unity, but when I play on iOS and Android, when I press the restart button from canvas, after 3-4 times when restart was pressed, the game ...
0
votes
2answers
33 views
Control Camera with gyroscope and place a gameobject always in front of it
Actually I have came here after searching from past 5-6 hours. Actually I am making a small game in which I have a camera and a gameobject. The Game Object is place in the center of the scene at 0,0,0 ...
0
votes
0answers
12 views
SteamVR_Controller.GetPress, GetPressDown and GetPressUp always return false?
I'm developing for htc vive with Unity. Using the Prefab [CameraRig]. In Unity I attached this script to the 'Controller (left)' inside [Camera rig]:
public class WandController : MonoBehaviour {
...
0
votes
2answers
50 views
Unity - how to remove standard sky but keep the lighting?
How can I remove the standard Unity sky (to have an empty space with no texture around my scene), but keep all the lighting effects from it?
0
votes
1answer
44 views
Use an image as mask only where pixels are opaque
We are into a game where to build our tile map, we carve on an image with a mask (At first the whole map is an image, and we create holes on it with tiles to create the map and le the background show. ...
0
votes
0answers
41 views
while loop not being executed on iOS
So I have this code for showing an ad. It is supposed to pause the app while the ad is showing. It works on android but on iOS it doesn't even seem to be called, judging from the debug msgs shown in ...
0
votes
0answers
14 views
Setting wrap mode of a NPOT WebCamTexture to repeat
In my project, I am using an orthographic camera and a quand in front of it. The quad is set to be stretched and fills the whole view port using the following script.
float scaleY = Camera.main....
0
votes
2answers
26 views
How do I find an accurate current speed of a navmesh agent?
So I have a blendtree of an idle/walk/run animation of a character (the navmesh agent). I want to use a normalised float of the speed of the navmesh agent to control the blend of the animation cycles. ...
-1
votes
1answer
43 views
System.Drawing.dll not found
I am creating an asset, in Unity, and I need to use System.Drawing. I have been trying to figure out how to add the DLL in a way that works, but I have had zero luck. I have tried adding the DLL to ...