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.
2
votes
2answers
20 views
UI Text in Unity World Space Canvas
I've been struggling with the text for my game labels, as can be seen below. Unity has even included it as an official bug, although no timeline is set to fix it.
The text just looks poor. I've seen ...
0
votes
0answers
13 views
Is it valid to translate bones when retargeting a animation avatar?
I've learned that I need to retarget the models animation avatar so that its close to the avatar for the model that comes with the animation asset I want to use. I got this tutorial from the author
...
0
votes
2answers
41 views
What am I doing wrong? Date comparison
There's this one precious little if in my code that is not doing what I want him to do.
Language is written in C# and doing it in Unity
Basically, I put a date on the Inputfield, which is linked to:...
0
votes
0answers
43 views
Turn Based Game- Determining turns
I am developing a Checkers game and need to implement players' turn, particularly after "Capturing". Changing turns after single steps work properly but not correctly after capturing. EDIT: I am ...
0
votes
2answers
66 views
Why is the camera view pink in Unity 5?
I am a beginner. I created a 3D project with a cube object, and I am getting this pink display, in the camera view.
Why is the camera view pink?
-3
votes
0answers
36 views
Implementing 2d Water Physics in Unity3d
How can we make 2d Water Physics in Unity3d? Because I think Unity3d does not have some feature for it. How can that be done?
If you know some tutorial, please comment the link.
0
votes
0answers
41 views
NullReferenceException: Object reference not set to an instance of an object [on hold]
I am currently working on 2D platform game. The following script is supposed to disable the audio whenever the toggle button is off.
using UnityEngine;
using System.Collections;
using System....
0
votes
1answer
32 views
Unity - Texture on Plane fades at angle - Generating mipmaps?
Good day, I seem to have run into a problem which I can't find an answer to. I'm making a World Editor for my project, and generating a grid plane which the user can modify. Whenever I rotate the ...
1
vote
0answers
39 views
How to merge 2D biomes?
I'm making a map generation script which generates different biomes: "land", "beach", "ocean" using perlin noise but the problem is that each biomes is at different heights for example i use
height =...
0
votes
0answers
20 views
Unet how to control child gameobject?
I'm currently getting into the Unity networking system called unet. I have a child of the local player authority, the weapon. The weapon (PlasmaCannon_left and right) have a script handling firing, ...
0
votes
0answers
25 views
How to detect if an object has been effected by AddExplosionForce?
I have a bunch of animated AI characters and I want to disable the animator and NavMeshAgent when a bomb has gone off. For each bomb I have used AddExplosionForce to create an explosion. How can I ...
1
vote
0answers
15 views
Lighting large scene with dynamic lights - Unity3D
I am working on a game project where most of the action takes place in a large scene that is built to look like a space station. Because it is all technological and enclosed, I can't use a directional ...
2
votes
1answer
49 views
How to use Unity to slice sprite
The polygon slice function of TexturePacker Pro is very nice, it suit the size of the sprite. However my TexturePacker Pro trial had finished, and by using Unity Sprite Editor will make my sliced ...
0
votes
0answers
31 views
Diagonal line across screen in unity build
Okay, so I was trying out some things with unity, and everything worked fine so I made a build of the game. Once I ran the build, I noticed that when I move there is a gradient diagonal line going ...
-4
votes
0answers
32 views
Creating levels in Unity [on hold]
How can I create something like this in Unity?
Do you have to create an image for each level??
Thanks!
0
votes
1answer
48 views
Multiple IF statements on Update (Unity)
Background
I am testing out a "Pause" system for my game. I have a Game Manager script and figured as it's the GM, it's a good place to stick a Pause system.
My pause works that on pressing "P" key, ...
-1
votes
1answer
36 views
Unity car AI with navigation mesh
I made a car AI that works by raycasting for obstacle avoidance to steering and accelerate. I want to know how can I implement a navigation mesh for better obstacle avoidance.
How do I implement a ...
0
votes
2answers
81 views
GetCurrentAnimatorStateInfo(0)
I want to get the current state from Animator. The reason I do this is because I want my sprite can approach multiple Idle state. For example, when sprite move left, when it go to idle state, it ...
0
votes
1answer
33 views
Mechanim “Hand Closing / Opening” Animation control with trigger
I wish to control any given Animator state "Playhead", with a variable - rather than have it play automatically with time. This is for an animation of a hand making a "clench gesture" which will be ...
1
vote
0answers
11 views
Get all OffMeshLink objects in Unity
What I'm trying to do is to make an edit-mode script that gets all off-mesh links and makes some of them bi-directional(depends whether a jump is possible).
My (obvious) attempt was:
...
0
votes
0answers
34 views
how to apply dual joystick on player movement script?
I got my player movement script, joystick movement script and also joystick movement script. The question is i got no idea how to change the keyboard movement script to the virtual joystick script. ...
0
votes
1answer
28 views
How to use MaterialPropertyBlocks to randomly change the color of multiple materials on an object?
I have a character prefab for a civilian with 5 materials. Each one should be a random color but I don't want a new material for every civilian in the game. I asked a question earlier and had a good ...
0
votes
0answers
9 views
Video playback on mobile: can't seek to the end
My Unity3D game needs to play videos on mobile devices (using Handheld.PlayFullscreenMovie()). Seeking works badly. If I tap the video progress bar near the end (expecting it to play the last second ...
0
votes
2answers
16 views
Raycasting to AddForceAtPosition goes to the wrong direction
I'm trying to get my coin object's Rigidbody to move whichever way it was swiped on by the user through RayCast
void Start () {
coinRigidBody = coin.GetComponent<Rigidbody>();
}
void ...
1
vote
2answers
38 views
How to change Unity's display settings/resolution?
Unity displays in poor quality on my computer (the software itself), I was wondering how to change resolution/display settings?
-3
votes
0answers
30 views
Why IntelliSense and Syntax Highlighting are not working in all opened visual studio tabs? [on hold]
I'm using Visual Studio Community 2015 to create scripts for Unity.
I have 12 tabs opened in each one another code file.
In all the first 11 tabs the line:
public class Shooter : MonoBehaviour
The ...
1
vote
0answers
20 views
Unity custom inspector - How to serialize scene objects in ScriptableObject?
I am writing a custom inspector for the artist in our team to design some simple animations (without using mecanim).
The basic setup is the following:
Animations are saved as ScriptableObjects. ...
1
vote
1answer
21 views
Debug Unity apps on Xbox One without ID@XBOX?
I have developer mode setup on my Xbox One, and can debug Windows Universal apps on it without issue from Visual Studio.
I am playing around with Unity, and would like to be able to debug on my Xbox ...
0
votes
2answers
74 views
Move relative to screen
I use top down 60 degree tilted camera and want move always visually straight directions relative to screen (up, down, left, right). When object is near screen edges it starts moving diagonally (...
0
votes
0answers
20 views
Problem with Chapter 12 in Unity 4.x [on hold]
I have a problem where I'm trying to create the tic tac toe game in Unity for 4.x for chapter 12 I I'm sure I typed the code correct, but every time I run the game I place an X and then it pauses ...
0
votes
1answer
44 views
Way to set waves and win condition for survival shooter game [on hold]
I want to develop a survival shooter in Unity. How do I set the waves for the spawning of enemies and win conditions?
0
votes
0answers
19 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
49 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
16 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
0answers
26 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
17 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
6 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
41 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
12 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
31 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
38 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
25 views
How create multiplayer turn based game in unity [duplicate]
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
37 views
Setting up a singleton class in Unity
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
31 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
21 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
1answer
37 views
Object reference not set to an instance of an object, but only sometimes
I have been working on a 2D space shooter game, in Unity, using C#. I was following a tutorial, but after it ended, I decided to expand the game. Everything works smoothly, but sometimes, I get an ...
0
votes
1answer
24 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
26 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
10 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 ...