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.

learn more… | top users | synonyms (2)

1
vote
2answers
81 views

Interaction between GUI and character(s)

This is more a question about architecture. Not sure if there's a right or wrong: Let's assume I have some gameobjects: GUI: A menu containing some elements like "Go to position". It's opened when ...
1
vote
1answer
71 views

Texture not working on object

I have a project that I'm having a bit of trouble with. Let me try and explain. In short, I'm trying to apply a texture to an object, but instead it is a solid color. I built a building in "Autodesk ...
2
votes
1answer
115 views

Where/how should A Star tie breaking occur?

I've recently written a path finding script that utilizes a basic implementation of the A Star algorithm. It works fine but is not very fast. This is due, at least in part, to the fact that it isn't ...
0
votes
1answer
51 views

Changing the duration of motion state transitions in Animator Controller

Anyone around who is experienced with Unity animation states and the Animation Controller? I wonder is it possible in Unity to change the duration of time it takes between motion transitions in the ...
1
vote
2answers
82 views

Unity2D - Save everything in a scene before loading another and come back to it?

So I have am into this endless runner thing where everything is generated randomly from prefabs. Okay cool! But I am currently working on a bonus collectible which takes the player to another scene. ...
1
vote
1answer
167 views

Unity — custom shader behaves differently on WebGL deployment (correct) and editor view (incorrect)

I started working on shaders and lighting on Unity3D 5.2.1f1. I set up a scene where the sun object rotates the directional light (the only light in the scene) based on its position to simulate a ...
2
votes
2answers
608 views

Board like strategy map

I want to make a strategy game like Risk. I want to use C# for the mechanics and Unity for the graphics. My problem is that I don't know how to create the map itself and integrate it with C#. I don'...
1
vote
1answer
116 views

Unity Animated Player Character Rotation Glitch

I was wondering if anyone experienced this issue in Unity with Mecanim-animated characters ... I have an animated player character with a third-person camera control (Game Camera from the asset store,...
1
vote
1answer
41 views

Editor-only circular contour around prefab instances

I have a prefab with radius setting, which programatically controls circular area with some stuff. I want instances of this prefab to display a circle with this radius in editor for convenience. ...
0
votes
0answers
139 views

Unity - principle of moving GameObjects / AddForce vs MovePosition vs position.transform

having generated a Mesh with MeshColliders as Terrain i want to move gameobjects in a RTS way along the map. i searched the Web alot, but iam having troubles figuring out HOW to move my Character (...
1
vote
0answers
87 views

How to make dynamic DOF from mouse position in Unity 5?

I found a video a while ago for how to make a dynamic DOF in unity. It fires rays from the camera and positions an empty at the location that the ray first hit. How can I change this so that it doesn'...
3
votes
1answer
954 views

masking with 3d object in unity

I have a 3d plane in my scene and some 3d objects behind that plane. So, i want to render only the part behind the 3d plane. So how should I do this, should I have to use custom shaders, plz help.
3
votes
2answers
623 views

Implementing a 4x4 Game Board

I struggle with efficiency in code, and I want to start my game off on the right foot. I have a game that I'm making a 4 x 4 map of 'tiles' that a user can build their 'town' on. To keep track of ...
1
vote
0answers
328 views

combining multiple materials into one material (Unity)

I am confused with how should I texture my character. I am using blender for modelling. And while my model is too complex I dont want to use uv map techniuqe. I can get what I need with using ...
1
vote
0answers
85 views

How to make lens flare ignore layers work with first person character in Unity 5?

I have a simple lens flare on my directional light (sun) and I would like the flare to only be visible when the sun is directly visible, naturally...But right now with the default ignore layers, the ...
2
votes
1answer
216 views

Keeping an object constrained to a 2d radius based off of the camera

A few weeks back I posted a question about keeping an object on the screen. What I would like to do now is clamping an object around a 2d radius based on the camera. I'm need this for a reticule ...
2
votes
1answer
860 views

Combining several animations into a single FBX

I'm trying to figure out a workflow for preparing character animations for Unity so that they are all combined in a single FBX file. The advantage as far as I see it is that it then uses only a single ...
3
votes
1answer
449 views

Unity - Where do Animation Events fit in the Script Lifecycle Flowchart

I was looking at the Script Lifecycle Flowchart and suddenly I got thinking about Animation events. Where do they fit, inside this flowchart? In which position would they be executed?
1
vote
0answers
25 views

Converting Unity .fbx model to .stl using the exporter?

We bought this script asset from the Unity store. We need to run it to convert some .fbx files to .stl. Is there any simple guide on how to run a script from the asset store?
3
votes
1answer
306 views

How do I quantify the curvature of a touch swipe?

I'm implementing a touch controller for my game. I am attempting to imitate Tiki Taka Soccer's "ball shooting" controls (gameplay video), where the curvature of the player's swipe affects the curve ...
3
votes
1answer
131 views

(2D) Take player speed into account while shooting bullets

In my top down 2D game, there is a plane as shown below: The plane shoots bullets forward. For firing bullets, I use: obj.GetComponent<Rigidbody2D>().AddForce(transform.up*500); However, ...
3
votes
2answers
128 views

Most efficient way to get the world position of the 8 vertexes of a Box Collider (C#)

What I am looking for is the most efficient way to get the world position of the 8 vertexes of the Box Collider of a freely rotated Gameobject. I cannot use collider.bounds since object is rotated, ...
1
vote
0answers
69 views

Trouble creating fog and lighting in unity

I am trying to create a model in unity that looks like this picture by Escher I can create the lattice, however, I can not create the fog and background/lighting effect. When I adjust the fog in ...
1
vote
0answers
57 views

Unity based washing/ cleaning game advice

I'm thinking about a way I can create a washing/ cleaning game as part of a project I'm working on within Unity, but given my lack of experience, I'm having trouble knowing where to start. The goal ...
3
votes
1answer
215 views

How can use a 3D map with 2D characters (Unity)? [closed]

I tried to search something about it but I can't find any complete or well-explained tutorials about how to use a 3D map with 2D characters and items, like Ragnarok or Final Fantasy Tactics. If there ...
1
vote
1answer
156 views

Unity + Texturepacker: Pivot point in weird positions

When my designer sends me the spritesheets done with Texturepacker and I open them with the Sprite editor, i notice that the pivot point is in extremely weird positions. Way above the spritebox that ...
3
votes
1answer
1k views

Vuforia AR/VR sample with Google Cardboard SDK: I cannot switch from augmented reality to virtual reality

I have followed the Integrating Cardboard to the AR/VR Sample latest tutorial. I have configured the provided scene sample according to that tutorial. I have compiled it to Android without any problem....
1
vote
2answers
50 views

(2D) Simple AI is not working when Object pooling is used

I am building a top down 2D plane game for practice. Here, enemy has an AI script attached. AI script does the following : Determine whether the object is spawned to the left or right of screen. If ...
1
vote
2answers
89 views

Unity doesn't show always the score

I don't know if this issue is in Unity or in my script, the score work well in scoreText, but in the scorePanel its show before last score like it showing 1 rather than 2; the issue doesn't always ...
1
vote
1answer
47 views

Concerns about APK version compatibility

I'm making a game in Unity, and i want to know if I generate the apk in version 4.1 Jelly Bean he will run in newest versions of android? Can anyone explain me better how the version works?
1
vote
1answer
69 views

2DRaycast is shooting slightly in wrong directions

I wanted just a simple 2DRaycast, which points from my character to my mousePointer. So I found the following code in the Internet, most people seem to use it like that. So I tried it, but it isn't ...
2
votes
2answers
145 views

preventing a camera from getting stuck inside a mesh in Unity

I've a 3rd person camera similar to Mario64. Currently, I'm working on preventing the camera from getting stuck inside a mesh. The goal is to move the camera overhead. This much trickier than I'd ...
1
vote
1answer
609 views

Why is Raycast hitting masked layer?

Many questions have been posted on this topic but I'm facing a weird behavior which I could not find an explaination for. I perform a raycast giving it a LayerMask parameter which is defined as ...
3
votes
2answers
824 views

Unity 2D Alpha cutout layer for Sprites

I'm trying to make a simple Fog of War effect for my 2d game, similar to these: . I want to have a sprite layer of black and then have a sprite to cut out itself from the black layer, leaving a ...
2
votes
2answers
414 views

How to fix flare in unity?

I have a simple sun flare that I would like to appear on my directional light (sun). However I cannot see the flare, I have tried setting the ignore layers to everything and checked and double checked ...
1
vote
0answers
140 views

Symbol not found Error in Unity3d - IOS Buid in Xcode

I new to IOS build , when i try to build following error showing I using Unity 5.2.1f1 and Xcode 7.0.1(7A1001) . Previous unity version was 5.0.1 , in that version , same error was found thats ...
2
votes
1answer
441 views

Good practice in implementing multi sprite (as skins) in 2d unity game

so, I want to make such functionality in my 2d game with unity : Multi skin character, with similar control and functionality, and with possible different gimmicks (such as crossy road's ...
1
vote
1answer
36 views

Texturing in blender

I am texturing a tree in bender using the sappling add-on, when i put the tree bark texture (which is saved as .jpg) the texture looks stretched and wierd, ive used "Use UV for mapping" on the curve ...
1
vote
1answer
137 views

Best practice for implementing overall / weekly / daily highscores?

So I'm setting up social leaderboards and I want there to be daily weekly overall high scores. The way the scoring works is each score is tied to a user after the user logs in so the scores need to ...
0
votes
1answer
35 views

Duplicating and adding sprites at runtime in Unity

I am trying to create a 2D game in Unity in which objects keep falling from top and the player has to dodge them. Suppose I have created a sprite which serves as a single enemy that the player has to ...
1
vote
1answer
217 views

Unity UI Button not working on PC build but working on Android mobile build

I am using Unity to build a game that is going to be used on PC and on mobile devices also. The problem I have is that when I use Unity UI Button, on mobile (android) is working perfectly but on PC ...
0
votes
1answer
60 views

Unity>How to make a Box Collider( or any other collider) fits the gameObject perfectly?

I have downloaded and imported the Robot Kyle model in Unity 3D...and the problem with me is I want to add a Box or Capsule Collider to it...but I can't fit it perfectly... So what shall I do?
3
votes
1answer
146 views

Distance travelled by gameObject and behavior depend on device's performance?

The distance travelled by my gameObject and behavior depend on my device's performance. If the device is slow for example, it takes longer to accomplish a specific task, thus travels at a smaller ...
2
votes
1answer
125 views

'Ball.rigidbody' hides inherited member 'Component.Rigidbody'

I have some understanding of c# and I am new to unity. I am currently making a 3D project which use the Rigidbody component on the ball object. When I use following code: public class Ball : ...
1
vote
0answers
507 views

Failed to spawn server object, Unity UNET

I'm familiar with Unity and programming but I'm new to this site. So I have an issue with clients on Unity. I start servers with no errors, flawless. But when I join a server as a client I get a ...
0
votes
0answers
50 views

Unity3d impossible to open / create project

i'm experience some trouble with the linux build of Unity3d. I suspect that my Nvidia driver give me some conflict, but i'm really not sure of this, so i'm asking: this is the error that i get in ...
0
votes
2answers
108 views

Optimal way to find point D that lays at the perpendicular line between point A and line BC

I am trying to write a script in C# to find the position of point D in 2D space in a specific scenario. I know the (X,Y) position of point A, which never happens to be on the line that contains the ...
7
votes
2answers
1k views

Pointers in C# Unity

Hey I've just learned about pointers recently and am wondering how I can use them in c# (I just learned about them in c++) in unity. I do have some questions though. Pointers use low level ...
1
vote
0answers
435 views

Using unity app how to read the asset in android SDCard?

I am trying to read one file from my android sd card from my unity application, but its not reading. using the asset bundle i have exported my file and kept in my android device sd card and i am ...
1
vote
1answer
83 views

Unity3D - leaving and then returning to a scene

Effectively, I need to know how to run a mini game and then return to a scene. I know about DontDestroyOnLoad (this); but that works for game objects only and doesn’t do what I need - also because ...