Unity is a highly cross-platform engine that focuses on easy art pipeline process and uses Mono as its scripting back end.

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Unity 2D, C# - Make object move diagonally by a certain angle?

I have a sprite object which I want to move in 8 directions. Left, Right, Up, Down, Left top, Right top, Left down, Right down. The view is 2D with a isometric projection. The difficulties I am ...
0
votes
0answers
18 views

How to give a Jerk Effect when the player is moving left of right

float amttomove = Input.GetAxis("Horizontal") * playerspeed * Time.deltaTime; transform.Translate (Vector3.right * amttomove); Currently, I have above script in Update function to move ...
-1
votes
1answer
11 views

Moving an object continuously when left or right key is pressed

I want the object to move continuously as long as key is pressed to left when left arrow is pressed and to right when right arrow is pressed. Instead of moving continuously it moves first time and ...
0
votes
1answer
19 views

Incosistent jump, stuttering

I've written this C# code to handle movement in my testing project. The game is supposed to be 2D, some kind of a platformer, just to get me started with Unity. However, it seems there's something odd ...
0
votes
0answers
16 views

Working with retina graphics on Unity 2D

I begun trying Unity for iOS 2D development. I am curious about how to work with retina devices. The first thing I did was create a 1136x640 solid rectangle sprite and throw it into my scene, then ...
1
vote
0answers
47 views

How to use an A* Pathfinding System across uneven environments?

I am developing a game in Unity3D. I want an enemy character to follow the player around. The problem is, my surface is uneven and full of mountains. I am using aarongranberg's pathfinding project. ...
-1
votes
2answers
60 views

how would I go on about making a movement system like mario party

main question how would i go about getting a movement system similar to the one they have on mario party only minus the dice roll things i have researched so I have been studying the uses for ...
0
votes
2answers
30 views

Monobehaviour can not find a member OfType in Unity

This is the line where I am getting above mentioned error: var listeners = FindObjectOfType<MonoBehaviour> ().OfType<iPlayerRespawnListener> (); I have already imported these libraries ...
-2
votes
1answer
25 views

animation problem on player movement ( unity ) [on hold]

I atached these script to the player . And added animations. And it moving perfectly, but the problem is when i click play, it playing the moveP animation automatically. How can i make it. If i ...
-3
votes
0answers
28 views

Unity 3D UI freeze [on hold]

I have a last version of Unity 3D. And I have a problem with it. When I do something UI is freeze, so I can't see result of my actions, but when I resize window all is fine. So when I select texture ...
1
vote
0answers
30 views

How to make a text of several letters animate, only with an animation

I wonder if it is possible to create an animation in a text with a single "animation". The problem is that for me to reach the desired effect I need to create an animation for each letter, as each one ...
-1
votes
0answers
68 views

Randomly generated voxel planets? [on hold]

what would be best way to implement this in unity engine, I have code that can render three dimensional array of bytes as voxels and it can generate good looking flat terrain using perlin noise, but I ...
0
votes
2answers
168 views

Is it possible to use C++ with Unity instead of C#?

The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?
1
vote
0answers
37 views

Unity Animator State Freezing

I am really new with Unity, I am making a game, but I am having some problems with the animators, my problem is that I am trying to add some animations to my menu, and also add new characters to my ...
0
votes
0answers
30 views

Text within a gameObject boundries

I am working in a little project and I want to show text within a rectangle. for that I use a sprite(rectangle) and a child that contains a TextMesh as component. The text change during runtime, and ...
-1
votes
2answers
94 views

Does Unity have a built in pathfinding system?

I know that there a lot of plugins available for pathfinding in unity but I was just wondering if unity has a built in pathfinding system ?
1
vote
3answers
150 views

How to create sprites, programatically without using prefabs?

I have different types of images for different sprites. and i am not certain that how much different sprites(images) i will have to show. So, i gotta create the sprites and apply textures ...
0
votes
1answer
103 views

What is the best type of c# timer to use with a Unity game that uses many timers simultaneously?

I am developing a stand-alone 3d game in Unity that will have anywhere from 1 to 200 timers running simultaneously. There will be a GameObject containing 1 timer. For this game timer durations will ...
2
votes
2answers
298 views

Keypress Left is called twice in Update when key is pressed only once

I have a piece of code that is changing the position of player when left key is pressed. It is inside of Update() function. I know, Update is called multiple times, but since I have an ifstatement to ...
1
vote
0answers
87 views

How to implement efficient Fog of War?

I've asked a question how to implement Fog Of War(FOW) with shaders. Well I've got this working. I use the vertex color to identify the alpha of a single vertex. I guess the most of you know what the ...
0
votes
0answers
11 views

How do I check user's unlocked achievement and leaderboard scores via GPG plugin

I need to load user's achievement and their scores from leaderboard in my game. But the Social.LoadScore() and Social.LoadAchievements() both returns a 0 size array in callback. When I checked the ...
0
votes
2answers
92 views

Set new forward directions based on camera position

I have a 3rd person camera which can rotate around the player. When I look at the back of the player and press forward, player goes forward. Then I rotate 360 around the player and "forward ...
1
vote
0answers
38 views

How can I dynamically load the correct sprite from a sprite sheet?

I am making a simple card game in unity. The game is based on a standard 52-card pack, with identical backs for unique faces. In my particular game different cards are worth different values and have ...
0
votes
0answers
25 views

Ouya build experiencing odd graphical artifacts, screen half black

I'm witnessing very odd graphical artifacts when I run my Unity game on Ouya. After the Unity splash screen, the game loads with the screen half black. This seemingly has started occurring out of ...
1
vote
0answers
43 views

Having a hard time having consecutive animations for an attack [closed]

So I've been trying to figure this out for about 8 hours now...It's driving me nuts because I am pretty sure that it is something dead simple that I am just not understanding. I had everything working ...
2
votes
2answers
131 views

How to implement Fog Of War with an shader?

Okay, I'm creating a RTS game and want to implement an AgeOfEmpires-like Fog Of War(FOW). That means a tile(or pixel) can be: 0% transparent (unexplored) 50% transparent black (explored but not in ...
0
votes
2answers
53 views

Unity, Unrealistic Sphere On Inclined Plane

So I am trying to model a ball rolling down an inclined surface in Unity based on what I am observing in real life but it is still quite off. In Unity it takes the ball about 3 seconds to travel ...
-2
votes
0answers
23 views

What tech/assets for 2D in unity [closed]

I'd like to make a 2d game thats heavy on HUD and grid base. The art would be pixel art and I'd like it to be pixel perfect if possible What tech do I use in unity for 2D? I prefer free or free to ...
-1
votes
0answers
42 views

Algorithm to shift the car [closed]

I have a track that can be divided into n number of tracks and a car as GamObject. The track has transforms such that some part of the track's width lies in negative x axis and other in positive. ...
-2
votes
0answers
32 views

2D Pixel/sprite game in unity? [closed]

Hi I'm an absolute newbie in unity. In the past I was told unity is terrible for 2d games so I look away after looking at it for a few days. I don't remember if this was right before unity4 came out ...
0
votes
1answer
67 views

Why do camera's aspect ratio look good on computer but not on Android devices?

I'm developing a game for Android devices and I have a script that solves the aspect-ratio problem for computer screens but not for my intended target platform. It looks perfect on computer, even when ...
0
votes
0answers
26 views

Scrolling background with changing textures

I have the 2 cubic structures that are my tracks and are scrolling basically to give effect of movement on object. In my OnBecameInvisible() method, I have changed their Tiling using mainTextureScale ...
0
votes
2answers
23 views

Material tiling and offset in unity

Ambiguity: What exactly is the difference between Tiling the material and Offset of material? Need to do: I need the material to be repeated n times on the object where I need to set the value of n ...
0
votes
0answers
22 views

Can Layer Masks Achieve This Effect

If you look at the image below you will see the player surrounded by a dotted yellow box. The dotted yellow box is also part of the player and represented a portion of the player being masked from ...
1
vote
1answer
68 views

How to make an object move again after being stopped by collision in Unity?

I have a player object which position is always centered on the main camera's viewport. This object has a Rigidbody 2D, a box and circle collider. The player moves around a level, the level has a ...
0
votes
0answers
29 views

Assigning an item to an existing array in a list within a dictionary [closed]

I have a Dictionary declared like: public var PoolDict : Dictionary.<String, List.<GameObject[]> >; I made a function to add items to the list and array function Add(key:String, ...
-1
votes
0answers
36 views

How to end game properly in unity? [duplicate]

I have made a game in unity free. The game is functioning properly but if your computer receives any kind of notification, the game minimizes automatically and stops to work completely. Along with ...
-1
votes
0answers
18 views

How to load .tanim files in maya Mac [closed]

I'm working on a zombies game in unity, and I have some animations of black ops 1 in the .tanim format. I found a way to use them, but it's only for the pc version of maya. Can somebody help me ?
0
votes
1answer
104 views

Simple heart container script for 2D game (Unity)?

I'm attempting to create a simple mobile game (C#) that involves a simple three-heart life system. After searching for hours online, many of the solutions use OnGUI (which is apparently horrible for ...
1
vote
1answer
69 views

Vehicle: Boat accelerating and turning in Unity

I'm trying to make a player-controllable boat in Unity and I'm running into problems with my code. 1) I want to make the boat to accelerate and decelerate steadily instead of simply moving the speed ...
17
votes
1answer
942 views

Why do I seem to lose control of my computer when full screen Unity game loses focus?

When I press Ctrl+Alt+Esc or Ctrl+Shift+Esc the game loses focus, but then the whole PC is unusable and I need to restart the PC to regain control How do I prevent the computer from locking up (let ...
-1
votes
0answers
14 views

Unable to create xcode project again from unity [closed]

I am using unity 4.5.3. I already created/built xcode project from unity. However, there were some strange linking errors I was unable to solve, so I decided to delete my xcode project and rebuilt it ...
13
votes
3answers
3k views

How to avoid movement speed stacking when multiple keys are pressed?

I've started a new game which requires no mouse, thus leaving the movement up to the keyboard. I have tried to incorporate 8 directions; up, left, right, up-right and so on. However when I press more ...
-1
votes
1answer
60 views

Why are prefab customizations being applied to only a single character? [closed]

I've built my (networked) game to the point where I have a room, some characters and a character customization screen. In the character customization screen I get to chose gender, chose from three ...
2
votes
0answers
53 views

How to do z-index parallax in 2D game in unity3d

I am new to unity3d and want to develop a simple game like crazy cabie. For which i have to implement a z-index parallax for moving sprites towards the player and generating new sprite a farthest z ...
2
votes
1answer
110 views

Executing Components in an Entity Component System

Ok so I am just starting to grasp the whole ECS paradigm right now and I need clarification on a few things. For the record, I am trying to develop a game using C++ and OpenGL and I'm relatively new ...
1
vote
0answers
35 views

Ease Rotate RigidBody2D toward arbitrary angle

I'm trying to make a rigidbody2D circle return to an orientation after a collision. But there is a weird behavior I do not expect - it always orients to the same direction. This is what I call in ...
1
vote
1answer
57 views

Align tetrahedrons

I'm currently generating tetrahedron meshes in Unity When a player clicks the side of a mesh, a new one spawns aligned with it, like this. I'm not sure how nor can I find any information on ...
-3
votes
0answers
31 views

Share text message on selected media

I want to share text data on player selected social media. Basically I want to implement functionality like following link represent for android. Send Text Content I want to give user a choice for ...
-1
votes
1answer
33 views

How to use lemodev highscore plugin for unity?

I am trying to add a server-sided highscore system to my game in unity. I have downloaded the free lemodev highscore plugin from the asset store but I cant figure out how to use it. I know where to ...