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 (1)

0
votes
3answers
94 views

In Unity3D, how can I improve image clarity?

The same images that appear clearly in Adobe Flash appear blurry in Unity. My game uses quads, cubes and sprites. I've tried the game on Android, iPhone, Mac and PC, but the image appears ...
1
vote
0answers
27 views

How to improve image clarity in Unity 3d [duplicate]

How to improve image clarity in Unity 3d. If we use same images for game developing in Adobe Flash and in Unity , flash game have more clarity , but in unity image will blur . Text Mesh also blur How ...
0
votes
2answers
76 views

Unity Vector3.MoveTowards over the span of a minute with Time.deltaTime

I'm trying to figure out how to use Time.deltaTime to let me move an object over the course of a minute. From my understanding, Vector3.MoveTowards(transform.localPosition, finish, Time.deltaTime) ...
0
votes
1answer
37 views

unity — object references, why do I always get errors?

For context: I randomly generate a few points on the map, and each point is a gameobject with a script containing an OnMouseDown method. Here's the relevant pieces of code(I've omitted the irrelevant ...
0
votes
0answers
42 views

Character body morph in Unity using Blender models

I have character and clothes modeled in Blender. Everything rigged, weighted and mecanim compatible. All working good in Unity. I am trying to implement in-game character body shape customization. ...
0
votes
3answers
86 views

Unity and the problem with calling functions from other scripts

I'm not sure how everyone handles this, but I'm running into lots of instances where I want to call a nonstatic script from another script which forces me to add the nonstatic script to the gameobject ...
0
votes
1answer
24 views

How to put labels at a specific point on any resolution

I am working on a project in Unity 4.6.1 and I put the label at the top: But when I put the Scene in full view this happened: I made a Development Build and when I select my resolution (1366x768) ...
-2
votes
1answer
64 views

How do I have a player also be a server? [Unity 2d]

I'm trying to make a game in Unity 2D, and I need a player to be a host because I can't afford dedicated hosting. Each client will have files that the server (and other clients) need to be able to ...
0
votes
0answers
56 views

Failed to load plugin in Unity mismatch with 64-bit and 32-bit

I am building a game in Unity and I am trying to load a dll from the plugins. I am running on 64-bit windows but I want to build a 32=bit game. When I try to load the dll I get this error Failed to ...
-1
votes
1answer
25 views

Unity: Prefab image is scaled

I have a question regarding to the size of images in the prefab versus UI/Image. When I drag prefab(SlotWheel) into the Scene editor, my images get scale larger. The original image that composed ...
1
vote
1answer
34 views

Implement dynamic 2 player splitscreen based on player positions

Having a local 2 player game, when the distance between the player is big enough, we have a splitscreen whose shape is defined by the angle between the two players. When they get close enough to each ...
1
vote
1answer
102 views

Unity: How to get a GameObject programmatically?

I have created a prefab. In Unity Scene editor, I dragged the prefab into the scene and named it PrefabA (this is a GameObject instance of the Prefab). Now, I need to update the PrefabA position. How ...
0
votes
1answer
45 views

Lighting changes when loading scene

I have a script that changes the levels using Application.LoadLevel (sceneNameToChangeTo); Once a level is loaded using that code when testing with the editor, the lighting changes dramatically. ...
0
votes
3answers
70 views

How to check distance between two different vectors?

So I have a very basic racing game, where I would like the car to stop once it hits the finish line. Respectively when the distance between the car and the finish line hits or goes under 0 the car ...
0
votes
1answer
43 views

Scaling images in Unity

I have a question about how scales work in Unity (using 5.0). I've made a .gif image that is 100x100 pixels in size. I put it in Resources folder under Assets. When i drag it onto the scene it ...
2
votes
1answer
135 views

Is Physics2D.BoxCast a safe alternative to a row of raycasting?

Raycasting in rows is a common practice. Is using the Physics 2D BoxCast function a good alternative to using multiple raycasts spread out (an example use being collision detection in a custom ...
-1
votes
1answer
57 views

Are the prefabs stored in RAM or in the Hard disk? (Unity3D)

I have many prefabs objects (65 MB) in an Unity3D project. My game use 100 different levels with combinations of the prefab objects. What is better create 100 scenes or create only one scene where ...
0
votes
0answers
19 views

Unity not importing pivot points?

To start things off, I begin with the following set of procedures: Begin with a model in 3DS Max, which I will refer to as Cube. Confirm that Cube's pivot point is exactly in the center of it, which ...
0
votes
0answers
44 views

Unity 2D: Lighting ground tiles in a sidescroller?

I'm trying to find a good way to tint the ground tiles in my 2D game at sunrise, sunset, etc. I thought it'd be a good idea to use a diffuse material + lighting in order to create effects by ...
3
votes
5answers
1k views

Trying to implement gun cooldowns in C#

My aim is to allow my player to shoot 3 bullets at a time. Between shooting these 3 bullets the player should wait a very small interval (so that they don't all get fired at the same time) - call this ...
0
votes
1answer
56 views

Touch Input with Event Trigger. How to handle with it properly

Hello Community, Since this is my first post I wanted to say hello. As every beginner developer I have a lot of problems. Below one of them: I wrote simple script to control my 'Player' object: ...
1
vote
0answers
52 views

Algorithm for creating mesh from 2D image silhouette

I'm looking for an algorithm that can take a 2D image, approximate it's shape and then generate a low poly mesh. Basically, the same what Unity does with sprites when you select tight mesh instead of ...
0
votes
0answers
24 views

Alpha Lambert Shader Transparent even when Alpha is 1?

So I'm writing a shader that has to be differently transparent in different spots. However, when I use #pragma surface surf Lambert alpha, the object is partially transparent even when I force alpha ...
0
votes
2answers
52 views

GameObject's scale gets 0 after being parented in editor

1) Before 2) After being parented. I found a pattern. When adding the child, if the parent's scale.z = 0 the child scale.xyz becomes 0 on parenting. If the parent's scale.z != 0 it works. Another ...
0
votes
2answers
176 views

Basic C# Script in Unity3D for firing a bullet (not working)

working on a 2D top-down view game. Im trying to get my player to fire a bullet when spacebar is pressed. I added a component to my player (a bullet sprite) and placed it under his gun (so you can't ...
0
votes
1answer
72 views

Unity associated game object is null when running

I am just starting with Unity. I have two UI Text game objects, Atext and Btext. I have associated them by drag-dropping with my PlayerController script public variables, say public Text atext and ...
0
votes
0answers
37 views

Will I be able to use scripts included in an Asset Bundle as long as the script was in the game build?

For example, I have a script, let's call it "script.cs". If this script is in the script folder(somewhere inside the Asset folder) during build, will I be able to reference it(load an object with this ...
2
votes
2answers
99 views

Simulating beer pong physics in Unity

I'm trying to create a simple beer pong game in Unity. The basic idea is this - when it's your turn to shoot, you use your mouse to pick a point on the table that you want the ball to hit and bounce ...
0
votes
0answers
29 views

Building an animated player character from a rigged model

I have a rigged model and different animations of the same model (in C4D) - i.e they are different .fbx files. I have imported them to Unity and would like to make it a player through the Animation ...
0
votes
2answers
127 views

Moving a character depending on the direction he is facing (C#/Unity3D)

Right now I have a small soldier on the screen that moves with W, A, S, D and rotates / changes direction with the arrow keys. What I want to happen is when the player's direction changes (by using ...
3
votes
2answers
198 views

Creating a countdown Timer in Unity

I want to create a countdown timer in a Unity game I am creating. Up until now my game was running for a specific time but I was using InvokeRepeating to end the game after the set time. But now I ...
1
vote
1answer
43 views

How to properly activate trigger objects?

I have made a flying cat that follows the player, but I want the cat to be a separate object. Cat is following the player and as soon as it sees a collectible it grabs it for the player and then ...
1
vote
1answer
37 views

Unity3D Tag as a public variable in editor

How do you incorporate Tag strings into a scripts editor found in the inspector? What it is I'm babbling about: When you create a public GameObject fooObject in a script, it shows up as a box that ...
0
votes
1answer
55 views

Why is C# method not showing up for button's On Click()

I have a C# script called MainMenu.cs Here it is in its entirety using UnityEngine; using UnityEngine.UI; public class MainMenu : MonoBehaviour { public Button btnPlay; // Use this for ...
0
votes
1answer
24 views

Importing .anim files created using the Unity Animation controls

Our artist created some .anim files using the built-in Unity Mecanim system (where you use keyframes and drag various body parts to construct the animation). However, now we're trying to export them ...
0
votes
0answers
29 views

Is there a way to obtain a user-set “name” in multiple platforms?

I'd like to obtain, under any supported platform, a user-set name. It does not really matter where it comes from, as long as it's automatic (i.e. obviously a form where the user inputs that name isn't ...
1
vote
1answer
85 views

How long is SystemInfo.deviceUniqueIdentifier?

How long is SystemInfo.deviceUniqueIdentifier? The official docs say nothing about it. Obviously I can do a few tries, but these will definitely not be conclusive: did someone either gather extensive ...
1
vote
0answers
93 views

why is my (from example) shader appearing as black?

I have the following (very simple) shader: #pragma kernel CSMain RWTexture2D<float4> Result; [numthreads(8,8,1)] void CSMain (uint3 id : SV_DispatchThreadID) { Result[id.xy] = ...
1
vote
1answer
67 views

Unity3D: Storyboard-esq animation - a beginners question

As part of an interactive book I'm developing in Unity3D, I'm attempting to make an introductory scene that consists of moving lots of objects at different times - usually when another animation has ...
0
votes
1answer
108 views

CPU Usage and Available Ram in Unity 5

In Unity 5 I would like to be able to print out the CPU Usage and Available Ram left in MB. I followed the code posted on http://zamov.online.fr/EXHTML/CSharp/CSharp_927308.html and used it, however ...
13
votes
2answers
884 views

Make platform's visibility distinct from background

I have a 2d infinite runner type game which background is changing its colors constantly. Meanwhile the color of the platforms stays the same. This way the platforms at some point(when their color is ...
-2
votes
1answer
44 views

Sprite disappears after adding a material to it

I have background which is FirsLayer, order in layer 0 and platform over it which is FirstLayer, order in layer 1. Once I add a material to the platform, the layer doesn't seem to change but it ...
1
vote
2answers
54 views

How is setting the size of the window done?

Maybe I missed something, but I've gone through 3 full unity video tutorials (roguelike, shooter, ball) and gone through the standalone scripting videos up on the unity site and I'm still confused on ...
0
votes
1answer
90 views

How do I upgrade my Unity 4.6 license to the Pro trial?

I've forgotten if I already used my Unity Pro trial. I get stuck in the upgrade process. How can I tell if I've used it already? I am following these steps to upgrade the license: Generating a ...
2
votes
1answer
151 views

RPC events with client side interpolation

I've implemented client side interpolation, where a specified delay is put on each client. This allows them to interpolate between positions and rotations. Unfortunately, this means every thing else ...
0
votes
0answers
61 views

Colliding of 2 moving objects

I am making 2d Game with my own Physics (without using of Rigidbody - some kind of challenge for me). I have two objects which are moving, and their velocity vectors. I have some unmoving objects. ...
0
votes
1answer
113 views

Unity 5: Accessing a C# variable from Javascript

I've set up a SQLite database with Unity. Into this I would like to add the current CPU Utilisation. The SQLite scripts are in Javascript and the method for finding the CPU utilisation is in a C# ...
1
vote
1answer
65 views

Overriding all object inspectors in Unity

How can this be done? I want to add a single label to every component( including non-misbehavior ones ) in the inspector. I've tried: [CustomEditor( typeof( Object ) )] And: [CustomEditor( typeof( ...
1
vote
1answer
128 views

What would cause my script generated buttons and text to show in Unity and not on my phone?

I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
1
vote
2answers
85 views

Accessing a newly Instantiated Object

I currently am creating a script that allows the player character to attack by shooting orbs at foes. I have the current code to do that (not final code, for testing purposes): ...