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
0answers
3 views

Quaternion.LookRotation() not rotating 360 degrees

In my scene I have two cubes and one of them has the following script attached: ` using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { // Use this for ...
0
votes
0answers
2 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 ...
1
vote
0answers
8 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 ...
0
votes
1answer
19 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
24 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: ...
15
votes
2answers
4k 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
30 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
50 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 ...
-1
votes
1answer
62 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
30 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 ...
1
vote
3answers
42 views

Filling background with tile image

I'm learning Unity and developing a 2D game for learning. It's really similar to RimWorld and Prison Architect. I have a grass tile image (32x32 pixels) I want to fill background with this image. ...
1
vote
1answer
59 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 ...
-4
votes
0answers
29 views

A free “maker” engine to create and export commercial Android games? [on hold]

I need a free "maker-like" engine that can easily export Android games. I mean ready-to-store and with no costs. Unity and GM Studio Android exporting versions are paid, right? So, whats the best ...
0
votes
0answers
9 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
109 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 ...
-4
votes
0answers
27 views

How do I change the control from PC to Mobile? [on hold]

I have my character control script working on the pc. How do I change this script to work for a mobile port? using UnityEngine; using System.Collections; public class Player: MonoBehaviour { ...
0
votes
1answer
41 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
24 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 ...
0
votes
1answer
75 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
10 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 ...
0
votes
0answers
15 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
29 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?
0
votes
1answer
49 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
48 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
41 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 ...
-3
votes
0answers
50 views

Orbital gravity in Unity 5 [on hold]

It's pretty much in the title: how can I make orbital gravity? I am trying to make a space-themed FPS.
0
votes
2answers
37 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
38 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
45 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
18 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
23 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
47 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
10 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 ...
0
votes
1answer
28 views

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

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 ...
0
votes
0answers
14 views

Need help with torque and velocity [closed]

I made some basic movement code for my player in C#. Here it is: public class Movement : MonoBehaviour { public float rotationspeed = 100.0f; public float maxrot; void Update () { ...
0
votes
0answers
14 views

How to make multiple characters with similar design [duplicate]

I am making a 2d platformer RPG game and I would like to create a character creation system that allows you to create your character as you please in the beginning. Since I want at least 10 different ...
1
vote
1answer
38 views

Using coroutines to instantiate larger GameObjects in Unity/C#

We are making a scroller type game for mobile platforms and we got pretty far (Beta is already out). Now we are adding some additional content and are starting to experience a noticable lag when ...
0
votes
0answers
29 views

Unity WebGL or WebPlayer? [closed]

The last time I tried WebGL (a couple of months ago), it ran at 30x lower framerate than webplayer, took forever to build, and had increased build size. Since then, I haven't seen significant work ...
0
votes
1answer
31 views

Is it possible in Unity to Flip a 2D Sprite Without Flipping the Object it is Assigned to?

I 'built' (followed a tutorial) on a collision detection system, and when I flip the object to go left and right the collision messes up. So I have three options; find a way to modify the collision ...
1
vote
1answer
42 views

Unity - drawing halos behind everything else

I would like it so that the halos created by the draw halo parameter in spotlights are drawn behind all other meshes etc, currently it does this very weird thing where halos are sliced in half by ...
0
votes
1answer
26 views

Create a WebGL native plugin

I am trying to create a WebGL plugin and I read in the docs here: http://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html But I'm not sure I understand. I created a file in ...
0
votes
0answers
42 views

Framework with multiplayer? For DotA like game [closed]

I'd like to create realtime multiplayer, DotA like game, the problem is - realtime multiplayer is really, really hard to do properly. I wonder, if there's a game framework that has full support for ...
4
votes
3answers
160 views

How to clip game objects to a rectangular area

I'm trying to figure out how to do this but am coming up short. I'm making a slot machine in unity 2d and would like to clip the tile prefabs when they leave a given rectangular area. I can't seem to ...
6
votes
2answers
573 views

A* pathfinding for dynamic obstacles and player made blockages?

Hi I'm creating a TD in Unity 5 and need some help with my Pathfinding. I'm going to use Arons A* pathfinding for my AI which enables me to use dynamic objects and update the path during run-time. ...
0
votes
0answers
20 views

Camera rotation in maze game depending of accelerometer

I'm still newbie in Unity 3D... I'm trying to develop simple maze game. I want to roll my ball through maze, but I have to rotate camera left or right, otherwise the player can't see what's behind ...
-5
votes
1answer
36 views

How can I properly implement Lerp in this code so that the it can run smoothly in every device? [closed]

How can I properly implement Lerp in this code? if (isJumping) { actualSpeed -= slowAmount * Time.deltaTime; transform.position += Vector3.Lerp (0.3f, actualSpeed * Time.deltaTime, 0); ...
1
vote
1answer
28 views

How to load sprites manually from a file in unity?

We're making a game, in which the User can apply their own textures to the game in order to make their own rooms. Is there a way to make a prefab with sprites, scripts, colliders, etc during runtime? ...
0
votes
1answer
30 views

Rotating A 2D Cannon Based On Mouse Position [duplicate]

I'm creating a game like bubble shooter, I have a cannon which is in the image bellow: I want to rotate the cannon based on mouse position. So far I tried various solutions I found over the web but ...
-1
votes
1answer
29 views

Simple voxel-block melee removing script

I'm trying to create a voxel based game, now I want my character to remove blocks with a melee weapon, but I'm not sure which way to go. I mean is it the only way to get the Block with a raycast? I ...
0
votes
1answer
17 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...