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)

0
votes
1answer
171 views

Copy a gameObject's collider at runtime (Unity)

I'm working on a small Unity 2D project in which I need to modify the collider of the player at runtime. I'm using Physics2D.Raycast to find the collider and then what I'd like to be able to do is ...
0
votes
0answers
75 views

How to apply 2D LUT on image/video?

I would like to apply colour correction to image or video using LUT. The LUT correction script thats available in standard assets works with camera only. Would like to know how to apply LUT ...
18
votes
4answers
2k views

Saving player's progress in a Unity game

I am making a game using the Unity game engine. I want to save the player's progress including level, experience points, chosen character, etc. Presently I am using playerprefs but I want to know ...
0
votes
1answer
27 views

Inline If failing to update variable value

So, I have a toggle button to change a bool value, in this script 't1Bool'. The toggle button is working because when I use a Debug.log I can see the value changing from true o false when I press the ...
0
votes
3answers
135 views

Text independent of screen resolution in Unity? [closed]

I have the following code that depends on the resolution of the user's display: void OnGUI() { GUI.Label(new Rect(432, 525, 9000, 9000), ("Hello!")); } And of course, the location of the text ...
6
votes
2answers
783 views

Making holes in 3D objects (Unity)

How can I make a hole in an object with Unity 3D? I've something like this object and I want to make a hole in it.
1
vote
3answers
98 views

Nothing happens when I press play in Unity3D

Hello everyone I am making my first game, things were going well but suddenly nothing happens when I press play, I have already update to the newest unity version but it persists. I have the main ...
0
votes
0answers
46 views

How can I change my angular momentum correctly using Unity3d physics?

This is an odd question to ask here, but I've almost been pulling my hair out trying to solve this. Plus its more of a mathematical/physics problem than a programming one. I'm trying to implement ...
0
votes
1answer
94 views

What is the most efficient method of creating a detailed 3d tileset in a 3d game that uses a grid? [closed]

Well, the most efficient method might be with how minecraft does the terrain by using a single block for a single grid, but one thing I am concerned about is that the method minecraft uses is poorly ...
0
votes
1answer
847 views

How do I hide UI canvas in c# Unity3d?

I want to display the final results at last in the game when gameobjects finish the winning(finish) line. For that I am using canvas and in that a panel onto which an image is attached. I have to hide ...
1
vote
0answers
56 views

How do I allow clients to move a GameObject that exists on the server?

I started to delve into the UNet system for the first time the other day and I've run into a bit of an issue while testing on a localhost server. In the scene there is a Rigidbody ball that I want ...
3
votes
3answers
71 views

Computing a full revolution for an arbitrary orbit?

I'm making a game in which the goal is to get as many planets as possible to orbit around a star. The user launches planets at any distance away from the sun (as long as it's on-screen), and in any ...
0
votes
0answers
68 views

Apply Pixel Perfect by script in Unity?

How can I apply Pixel Perfect by script in Unity? All I could find on the web is this which does help at all..
0
votes
2answers
90 views

How can I change my RangeAttribute during in my script?

I have an int which I want to be between 0 and an unknown number. This unknown number is max in the example below. I want this max number to change when another number changes in the editor. How ...
3
votes
2answers
188 views

Develop a Wii U game without official dev kit

I was looking for unity for Wii U game development. But it seems that I need the approval of Nintendo to have the software (and special hardware) (ref: https://wiiu-developers.nintendo.com). Is there ...
1
vote
1answer
108 views

Creating a Slide-Up Menu

How can I create a menu that slides up while "un-fading" as illustrated in this video? As you can see in the video, the menu also falls down a bit in the end which gives it a realistic feel. I ...
3
votes
1answer
477 views

Why is my game freezing?

Ok here is what I have done. I have made a simple test game where you move a character around. I built it and installed the app onto 2 different devices (as it will be a multiplayer game later). ...
0
votes
1answer
104 views

Creating placement grid in Unity

I'm fairly new to C# and Unity, so I don't really know much about it. I want to create an RTS like game where you have a huge grid that the whole world is placed on. Then you can place houses, walls ...
4
votes
1answer
814 views

How to make (or where to get) a half-sphere mesh that textures properly?

I'm making a game in Unity that involves lots of spheres. Said spheres will have lighting applied to them, but will also be viewed from only one camera angle. Right now, the full spheres look ...
0
votes
2answers
40 views

Recursive method causes an OutOfMemory error [duplicate]

If a GameObject in my game has a special ability it triggers it, but I want all the special GameObjects that this GameObject affects to also trigger their abilities, for example if a bomb hits some ...
0
votes
1answer
79 views

Mismatch between scene view and game view

In my scene view, it looks like the player is correctly lined up with the map. But when I see it in the game view, it's off. You can see the Game view in the top-middle, and the Scene view in the ...
1
vote
1answer
78 views

Method causes OutOfMemory error

If a GameObject in my game has a special ability it triggers it, but I want all the special GameObjects that this GameObject affects to also trigger their abilities, for example if a bomb hits some ...
0
votes
2answers
250 views

OnTriggerEnter() without rigidbody?

I know this is an old question and it has been answered for a lot of people. Unfortunately none of the solutions apply to the problem I seem to have with rigidbodies. I have a moving AI character and ...
0
votes
1answer
49 views

Objects fall off screen, because stay one behind another[unity]

I m learning unity, I placed objects on a scene, camera is looking at them and displays them fine. but in 3d, I can see they are one behind another, so when i hit play button, they just fall! Pic: ...
-1
votes
1answer
502 views

Player controller script rigidbody velocity?

I don't understand how this works. How does this code go about manipulating the player's rigidbody velocity? Can you explain it piece by piece? //Movement public float speed; public float jump; float ...
-1
votes
2answers
60 views

Publishing a Unity game to Android/iPhone

How can I publish a game that I made in Unity onto Android and iPhone? How do I generate the Android/iPhone binaries?
0
votes
1answer
220 views

How can I make my tiles fall smoothly?

I'm working on a Tile-Based game and I can't figure out how to make my tiles fall down smoothly like in candy crush. All column tiles fall-down at the same time. And spawn new like how many tile place ...
0
votes
1answer
65 views

Enlarge screen space Texture by set pixel amount

I have a texture shown over the screen using screen space UV's. The Texture is 495x,596x, Screen size is 888,500, but can change. The Texture has a Tile of (3.469775f,1.392644f) to correct for ...
0
votes
0answers
56 views

UFPS - Player Animation Setup - “Enabling animation, headlook and ragdoll handler”

Description: I am following the tutorial from the manual for UFPS for setting up the player for animations: Player Body >> Player Body Setup >> Tutorials >> Enabling animation, headlook and ragdoll ...
0
votes
0answers
91 views

How to pass a java string variable from android activity to unity3d C# script variable?

Require some help to pass custom autogenerated text from android activity to unity3d activity being started.
0
votes
1answer
169 views

Unity 5 Animation attaching

I have created the walking and idle animation for my fps player. I've added a JavaScript script to access it, but when I run it and press button(w), it stops and says that the animation is not ...
0
votes
0answers
64 views

Conversion from .dae to XML for 3D Models in Unity BuildR

My partner and I are trying to import .dae files from Sketchup as well as 3DS Max into Unity's BuildR extension. Collada a.k.a. .dae files have an XML-based schema so we incorrectly assumed they would ...
0
votes
1answer
48 views

How can I clamp the transform to a range?

I am trying to create a level editor in Unity. When the position of an object is changed, I want that object to have its X and Y positions clamped between 1 and 10. So if the position is changed to ...
1
vote
1answer
83 views

Why transform.find() does not need actual object[unity]

I m new to unity and C#. I suspect that transform.find() function below does not need actual object reference like player.transform.find() because it transform find is already applied to the ...
1
vote
0answers
255 views

How to refresh andoid photo gallery in unity

After saving a screenshot into the folder i cannot view the screenshot in the android gallery but can see the screenshot in the folder created.Is there anyway i can see it through gallery?
3
votes
3answers
388 views

Text Based Tutorials for Unity3d [closed]

I hope this is the right place to ask this. I'm very new to Unity but not to programming. I also have some basic game programming experience. I'm searching for text based versions of the videos from ...
0
votes
1answer
257 views

How to find connected groups in a 2D grid of tiles

Firstly, my English is very bad, sorry for this. That's why I showed my problem with a picture. Block[,] sameTiles = new Block[ WorldController.Instance.World.Width, WorldController.Instance....
17
votes
4answers
2k views

How can I make particles glow and cast light on its surroundings?

Im currently attempting to make a firefly effect on a dark forest. The level has very low light and the player is one of the few light sources. To let the player see the level better, I am attempting ...
1
vote
1answer
155 views

Flash animation or Sprite sheet animation good for Unity mobile games

I would like to develop dress-up and cooking kind of games. So it needs lots of animations. Our designers done the animations in the lash. I found the plugins callued GAF and UniSWF to convert flash ...
0
votes
0answers
179 views

Update the Android Gallery after take a screenshot from android device using unity3d

Currently we are working on "Update the Android Gallery after take a screenshot Here follows our issues: The problem is that we are having a button,when we click on the button the photo gets saved in ...
4
votes
1answer
123 views

Introduction movie running before game starts

There are many games out there that feature a movie or cut scene to feature either in-game features or to set the mood for the player. Some examples are the intro from Tony Hawk Pro Skater 4, Fifa ...
-4
votes
3answers
161 views

How do I increase the speed of an object after it spawns?

I'm trying to increase the speed of a game object based on the wave it spawns in. How would I go about doing this? public class GameController:MonoBehaviour{ public GameObject hazard; ...
4
votes
1answer
48 views

How can I have a value increase by multiples of 10 in the inspector?

I have a number that I want to be editable in the inspector. However, I want to restrict that number to be a multiple of 10. I can always just go into the code and set it to the nearest multiple of ...
1
vote
0answers
108 views

Create prefab asset from object without creating object in the scene

I am writing an editor tool that is supposed to generate prefab objects from a parsed TMX file. Since this is a special case because I don't want to instantiate objects, but rather create them there ...
0
votes
1answer
261 views

Best way to interpolate player movements in a very fast paced Unity game?

In my Unity online multiplayer game players move very fast and I currently use Lerp to interpolate between their last position and current position: transform.position = Vector3.Lerp(transform....
0
votes
1answer
43 views

Why is my counter not incrementing when OnTriggerEnter is called?

I have a script that handles the destruction of game objects based on what they collide with. I am trying to count the number of objects destroyed when they collide with specific objects. However, ...
1
vote
1answer
114 views

Is there any other way to animate 2d spritesheet without Animator Component in unity?

Is there any easy way exists that animates frames without using Animator component?
0
votes
1answer
234 views

How to find a material through a raycast in Unity 5?

I have an empty object with a script on it and I want to be able to move the empty over other objects and then have it print out the name of the material for the triangle that it's hovering above. (...
0
votes
1answer
752 views

How to correctly sync an ArrayList of GameObjects on a server/client

I'm experimenting with networking in Unity and I can't seem to get an ArrayList of GameObjects to sync from the server to the client. Here is the relevant code: [SyncVar] ArrayList walls = new ...
1
vote
3answers
242 views

Can't parent the standard FPSController during gameplay

I'm parenting the standard assets FPS controller during play with a simple script. The controller get's parented but also instantly inherits the rotation of the parent. This doesn't happen in Editor ...