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
1answer
50 views

Call function after Level loaded

I'm stuck in this situation: I have a GameObject with a script, that persist trough Level loads. Inside this script, when a condition is meet, i Load a Level, and also call a function. That function ...
-2
votes
1answer
44 views

How to manipulate unity camera in a C# script? [closed]

I am new to unity and i'm trying to move the camera to follow the player, but everything i tried won't work. Please explain what each step is and show code. I want to add to its position not use ...
1
vote
0answers
102 views

Reverse Movie in Unity 5

guys! Is it possible to reverse video or apply a rewind in Unity 5? I searched in the web but could not find the solution.
0
votes
0answers
66 views

Goal keeper AI with animation

I'm working on football simulation game. I am trying to implement Goal keeper AI. I did calculated ball trajectory and intersect point. I wanted to Goal keeper to dive to the interaction point and ...
1
vote
1answer
49 views

How can I simulate a “Hot Swap” betwen Audio Clips?

I have a Unity project with 3 separate looping Audio Clips and a single Audio Source. Based on certain events, I swap between which of them are playing. This works fine, but whenever I swap between ...
3
votes
1answer
35 views

Why doesn't the animtor animate in unity5?

I have a player consisting of 20 different body parts which I have animated into a walking cycle. When I play the animation in an 'animation' component it works as intended, but when I try to play it ...
0
votes
1answer
96 views

How to force Landscape Mode Unity3D Android Game?

I am developing a small side project on Unity that will ultimately be for Android but I cannot figure out how to force landscape on the device and when I have tried it out the game just goes all over ...
0
votes
1answer
68 views

How to manipulate unity objects in a C# script?

I am new to unity and i was wanting to know how i can change a objects position and angles and stuff like that in a c# script. I exported the object from blender as .3ds. The objects name is ...
1
vote
0answers
29 views

Unity PhotonView - Ownership problems when synching objects

Im creating a billard game where one white ball will be controlled by two online players. I have set my object photonview to ownership takeover: https://www.dropbox.com/s/kq79lfh4clerx7q/no.jpg?dl=0 ...
1
vote
2answers
58 views

Is it possible to have FixedUpdate execute once every n frames?

I'm currently building a small game, and I've created this simple character controller using FixedUpdate, which executes every frame. using UnityEngine; public class PlayerMovement : MonoBehaviour { ...
1
vote
3answers
845 views

Unity LoadLevelAdditive and baked light scene settings

I am a programmer for a small game. For our levels, I separated the UI from the level data, so one scene is a scene which contains only the UI, the other scene has all the gameobjects and models and ...
1
vote
2answers
449 views

Unity crashes when opening a project

Why does this happen? I'm new to Unity development. I have installed Unity yesterday (2015-09-06). This is the error that I get:
0
votes
1answer
110 views

Objects with custom shaders cast grayscale shadows when lightmapped

Unity 5 seems to be able to calculate colored shadows from objects mapped with standart shader and legacy shaders. What should I do to make my custom shader to cast colored shadows as well?
0
votes
3answers
104 views

A method to create and assign a name to a GameObject (Unity)

I'm trying to create a function that takes in a name of an object in the editor and assigns this accordingly as well as the name of a sprite, rigidbody, etc. Basically what I have so far is- ...
1
vote
1answer
225 views

Change Material color programmatically

I'm writing a simple C# Script to change Materials color of a object. public class Highlight : MonoBehaviour { public bool Mouse_Over = false; public Color Highlight_Color = Color.white; ...
0
votes
1answer
336 views

UNET start game with friend by finding their name, Android

There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
0
votes
3answers
137 views

Making a 2d sprite based game in Unity? [closed]

I'm looking at developing a 2D sprite based platformer. Usually I make games in Gamemaker, because I find it very easy to use. I have never used Unity before but have heard a lot of good things. So, ...
7
votes
3answers
934 views

Unity and lots of objects. Can this way of designing levels bring problems?

Ok, question. I've been fiddling for Unity for a while and now trying to make a cohesive game. Up until now I've found the quickest way to design levels for me is to create a block of wall/floor to ...
-1
votes
1answer
120 views

Best field of view [closed]

What is the best value for field of view for an FPS?
0
votes
1answer
156 views

Quaternion.LookRotation() not rotating 360 degrees

In my scene I have two cubes one has a tag "Respawn" and another one has the following script attached: ` using UnityEngine; using System.Collections; public class NewBehaviourScript : ...
0
votes
0answers
108 views

Trying to grab an image file from Parse in Unity

So i've tried looking over the documentation and cant make heads or tails of it... so i'm hoping someone here can help: so i've created a ParseFile with an image stored in a byte[]. I've saved this ...
3
votes
2answers
431 views

calculating torque from angular momentum considering inertia moment

so I am trying to determine exactly how much torque to apply to a 3d model to make it rotate at a particular rate. I apply force from the location of each engine on the craft so if one breaks the ...
1
vote
1answer
114 views

Why does Unity not detect my camera attached via the inspector?

I want to use camera.ViewportToWorldPoint() to show the bottom center bounds of my screen. So, I created a script and added that component to my object that needs it. using UnityEngine; using ...
1
vote
1answer
55 views

Problem with grid generation in Unity 5.1

Using Unity 5.1 and was following a tutorial for generating a grid for a Minesweeper-style game. Link to the tutorial for reference: ...
20
votes
2answers
5k views

What happens if I make more than $100k with the free Unity license?

If an indie game developer makes more than $100,000 using the free version of Unity, what happens to the money that goes over $100k? How will Unity people come to know how much money they are making? ...
1
vote
1answer
279 views

Unity: Adjusting the camera so that the scene view and the game view look same

when I make any object I'm able to see that by other side in the game view. And this troubles me in adjusting the objects. So can anyone help me to adjust the main camera in such a way that views of ...
1
vote
3answers
1k views

Why does a UI button that is child to a canvas not appear in game view?

I am trying to place a button onto a canvas background using C# script. I want the button specific to the canvas (i.e., if I move the camera to look at another canvas, I do not want the button ...
-2
votes
1answer
117 views

How to make a stab function?

I've looked around everywhere, and I can't find an example script for a stab. What I have so far is a top down 2D scene, with a player at the bottom (static). I would like to have the sword/tongue to ...
0
votes
1answer
97 views

How do I ensure consistent behaviour when using Unity's Collider2Ds for triggers and collisions?

I am experiencing inconsistent behavior using Unity's 2D Physics engine and their Collider2Ds to detect collisions and triggers on my projectiles. I will classify it into two problems. The first is ...
4
votes
3answers
583 views

How do I efficiently fill the background with a tiling image?

I'm learning Unity by developing a 2D game. It's similar to RimWorld and Prison Architect. I have a 32×32-pixel grass tile image that I want to fill the background with. Here's a screenshot from ...
3
votes
1answer
261 views

Wander steering behaviour in 3D

I'm trying to implement the Wander Steering Behaviour but getting strange result (see .gif). What am i doing wrong? I want to move a sphere in a random direction. I read this article Understanding ...
1
vote
0answers
216 views

Unity Photon Networking - Cant understand OnPhotonSerializeView

in all tutorials I see that an object sends data over the network and receives the data for sync in the same method: Code (csharp): void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo ...
3
votes
1answer
497 views

Create a normal map using a script? Unity

I don't have a software that can create normal maps from an image so I usually make a grayscale image and then let unity make the normal map from that image. But I can't save the image to use for ...
0
votes
1answer
84 views

Getting path of right click in unity 3D editor

I want to create an extension for the Unity 3D Editor and have an custom asset type. During the process of creation this I recognized that I would improve the UX/usability if I can specify the path ...
0
votes
2answers
190 views

Unity - custom Export and Import FBX Data

I am trying to write custom data inside a FBX file from 3dsmax at export time. This might be possible even if I don't know right now how to do that. But my question would be how can I read those ...
2
votes
2answers
220 views

Why has my refractive water shader become reflective

So I was making a water shader in unity and well it looked fine in the scene view but as soon as I went into the game view the refraction texture basically flipped up 180 degrees and made it look like ...
0
votes
0answers
84 views

Unity and ASTC support

I have configured in unity all compressed diffuse map textures as 6x6 ASTC blocks and normals and other maps as 4x4 blocks. However when I profile my game using Mali Graphics Debugger it tells me ...
1
vote
0answers
65 views

How does Unity Static batch handle submeshes

I have the following 2 meshes: Mesh 1 Submesh 1 - Mat 1 Submesh 2 - Mat 2 Mesh 2 Submesh 3 - Mat 1 (same as mat1 from submesh 1) Since submesh 1 and 3 have the same material and they ...
0
votes
1answer
60 views

How to create axes for a console controller

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?
1
vote
2answers
653 views

Can't set up a PS3 controller in Unity

So I connected a ps3 controller to my computer via USB cable, when I press play I am able to move by using arrows on the left of the ps3 controller and also I am able to shoot and aim by triangle and ...
0
votes
1answer
209 views

Can't move character at all in unity basic platformer guide

so, I followed below tutorial. https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-a-basic-platformer-game Going well until 18:50 (video time in tutorial), when the ...
0
votes
1answer
544 views

How to correctly draw a 2D polygon in Unity

I'm trying to draw a 2D polygon using GL.Line; however I'm not getting a polygon but separated lines instead. In the example below, I would expect a rectangle formed by the spheres: My code is the ...
0
votes
2answers
69 views

get back unity default interface

i installed unity recently .and interface of unity looks like that [see the image] in all tutorials i see on the internet. but this is my one(I'm not in the game tab I'm in the scene tab)it's look ...
3
votes
2answers
135 views

How do I make UIText scale properly in a VerticalLayoutGroup in Unity?

I have a Panel with an AspectRatioFitter on it. In there, I have a vertical layout group, with three buttons, Standard Mode, Speed Mode, Chaos Mode. I have the Layout Group's anchors set to keep its ...
1
vote
2answers
514 views

BoxCollider not blocking other object(s)

I'm really newbie , watched about 20 videos about and tried to do something. But I still have problems with collisions. I'm working on 2D. I have a Sprite and a Cube (GameObject>3D Object>Cube). ...
0
votes
1answer
110 views

Export normal map from unity?

In unity I can create a normal map out of a black and white image (By changing the type to normal map and select create from grayscale) Im wondering if there is a way to export the normal map like it ...
1
vote
1answer
39 views

Water4Advance far view seems stale and plain

Hi How can I remove far clipping in Water4Advance so that it matches near view like following img? Currently far view water seems plaine with no wave n bumps at all.
0
votes
1answer
74 views

Unity why do all gameobjects not dissapear from view when I switch cameras?

I am having trouble with camera switching. I have two cameras: "Camera1" and "Camera2". A "button script" attached to Camera1 allows a switch to Camera2. It also positions the cameras. There is a ...
-1
votes
1answer
128 views

Cant sign in to MSDN/Visual Studio in Unity after trial [closed]

I've been using VS13 instead of Monodevelop for my Unity projects and my "30-day trial" has ended. Apparently all I have to do is sign in with my MSDN account and it should let me continue using VS ...
-1
votes
1answer
305 views

UNITY3D - Orthographic Camera not render SHADER (2D GAME) [closed]

I have a problem with camera render, see the video please :) (note.: sorry for the music) http://youtu.be/BB8rXIzIWVU In Camera "Perspective", i can see the effect of shader: In Camera ...