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
22 views

Why aren't .blend files importing into unity?

So I for the past week or so I have been having extreme difficulty trying to import .blend file that I made into unity. When I either drag or import the .blend file into unity I automatically get a ...
0
votes
1answer
112 views

What is the `AssetBundle` dropdown in the inspector for?

I know what an AssetBundle is alright. But what is the dropdown at the bottom right for? Apparently you can choose an asset bundle for this asset to belong to. So what? What happens when you choose ...
0
votes
1answer
1k views

Loading different navmeshes at runtime in Unity 5

In order to improve the extend ability of our maps, we load different components of the map at run time. The idea is a user can use Unity to make a map, drop it into a folder and it will be loaded. ...
3
votes
2answers
69 views

How would I create a billboard that is fixed to my camera's farplane?

I'm trying to set a GameObject(plane) to be positioned at my camera's farplane. I plan on using this billboard as a sort of dynamic skybox. How would I create a billboard that is fixed to my camera's ...
0
votes
0answers
6 views

Unity 3d Js head bone rotations

There is another version of Head Look script (link here, and code below) https://xenoaisam.com/2015/04/28/unity3d-eye-focus-and-head-look/ This is a simpler open source code that works better with ...
1
vote
4answers
278 views

Move ball based on direction of force?

I'm trying to make a ball that will move in the direction I push it from, and later pull it to me based on where the player is standing. using UnityEngine; using System.Collections; public class ...
1
vote
1answer
1k views

Creating a curved mesh on inside of sphere based on texture image coordinates

In Blender, I have created a sphere with a panoramic texture on the inside. I have also manually created a plane mesh (curved to match the size of the sphere) that sits on the inside wall where I can ...
0
votes
3answers
2k views

Find closest point on NavMesh if current target unreachable

I have a mock environment set up with a cube that has a specified "Not Walkable" layer. I'm using NavMeshAgent and NavMeshPath to set destinations of the player. The way I'm setting paths is by ...
0
votes
1answer
120 views

Store Player Stats

My character creation order is: Select Race, Select Class, Assign Bonus Stat Points, Customize and Name the character. Because I am using Unity's UI components I am using scripts attached to empty ...
1
vote
1answer
39 views

How do you use SoundManager for multiple player games over the network?

I have created a basic sound manager according to this unity tutorial (https://unity3d.com/learn/tutorials/projects/2d-roguelike/audio). However, I need it to work for multiple players over the ...
1
vote
1answer
147 views

How can I locate GameObjects near the player in Unity?

I'm trying to figure out how I can find GameObjects that are close to the player so that I can delete them with Destroy(). I know how to use Destroy() but I can't figure out how to get a reference to ...
2
votes
3answers
73 views

Unity - hierachy organisational methadology

I'm just getting into unity, so I do not know if this system of organisation will have any negative consequences. I intend to store my project files and assets under an assets directory then into ...
3
votes
2answers
5k views

Place an UI Image between two 2D sprites in Unity

I am developing a 2D game with Unity. I have two sprite objects rendered using SpriteRenderer. With the new UI system, I want to use it to display an image between my two sprites. That is, my first ...
0
votes
3answers
1k views

How do I add a Rigid body and a box collider component to a Texture2D?

I am making a snake game. I'm basing it on a basic tutorial game, which does no collision detection, wall checking or different levels. All snake head, piece, food, even the background is made of ...
2
votes
1answer
190 views

Apply a special effect to an scene area

My 2D game has a second camera on the scene that renders an upside down image of the scene and distorts it, giving the effect of water reflection. I render this camera first, and on top of it I render ...
0
votes
0answers
15 views

Calculating wheel spin for players over network

I am creating a game in unity 3d that uses google play's real time multiplayer service. The game has cars that drive around and I am trying to figure out how to apply a rotation to the opponents' ...
0
votes
1answer
34 views

How do I reference one gameObject with script attached to other?

this is all in Unity 3D with C#. Thing is, I have attached a script to my player that should Destroy TreeGroup (as in forest) whenever I press 'Q' and Instantiate them when I press 'E'. Here is the ...
0
votes
1answer
8 views

Wrong pivot point of parent / wrong scale of children

I'm trying to make two objects, in is an intact glass, the other one is the glass but shattered. So for the shattered glass, in Maya I make a Plane, cut it with the multi-cut tool, extrude the faces, ...
0
votes
1answer
29 views

Unity 3d: Animating Offset on a Quad is causing stretching issue only with iOS devices - Using Wrap Mode: Repeat

I added a 3D Object > Quad and added a graphic on it with the Wrap Mode set to Repeat. I'm animating the Offset to scroll the repeating image for a parallax effect. Everything is working perfectly ...
1
vote
0answers
13 views

Why scale of my new UI texture differs so much comparing to other GUI elements?

I have created an UI Texture and set Texture to my .png file. The size was only 256x256 but in the canvas it appears huge. I can change it to minimum 2x2 which is still big. If I compare it to other ...
0
votes
1answer
48 views

Trouble GamePad input on iOS but works perfect on Android

I am having trouble getting input from on iOS devices (iPhone 6 Plus and iPad). Here is my code, if (Input.GetKey (KeyCode.JoystickButton14))// A { chr_show = "A"; } if ...
1
vote
1answer
53 views

Unity3D (2D) - Make sure Item Dragged Is Top Item Visually

I am using Unity 5 and making a 2D game in which many sprites will be stacked on top of each other and can then be moved by dragging. Sometimes when the users goes to drag from a pile, ones that ...
0
votes
1answer
83 views

Unity Animated Player Character Rotation Glitch

I was wondering if anyone experienced this issue in Unity with Mecanim-animated characters ... I have an animated player character with a third-person camera control (Game Camera from the asset ...
0
votes
1answer
92 views

handle mousedrag() for two different game objects individually in 2D environment

I am developing a pong game for android mobiles having 2 slider and want to assign movement of individual slider corresponding to its current position I tried some code for the movement of these ...
1
vote
1answer
207 views

Unity Augmenter Reality on Android with Video playing

Hey sisters and brothers, So, I created an augmented reality marker, which works perfectly, I was able to display 3 shape on the screen with my Nexus 5. I would like to replace my shapes with a ...
4
votes
1answer
131 views

How can i convert non-canvas mesh collider object as canvas mesh collider object

I am new to unity i created a character object in Maya and stored it as char.obj, then i import the object in unity. the char1 object is not colliding with any other unity objects like cube, plane, ...
0
votes
1answer
26 views

Wheels not facing right direction when car faces different directions

I am creating a real time multiplayer driving game in Unity. I am using google play's real time multiplayer service. I am having an issue where the wheels of the cars that are over the network are not ...
0
votes
1answer
24 views

Moving occluders in Unity?

I've made a shader for a racing game in Unity that billboards a headlight glow effect (the lights are not actually light sources so I can't use lens flares). The quad with the glow texture is rotated ...
2
votes
1answer
541 views

Unity Grid Layout causing multiple draw calls

We are developing a game in Unity 4.6.6 for both Android and iOS. Currently I am building the game UI with the new Unity UI system. In particular I am building a button list to create kind of ...
0
votes
0answers
104 views

What is the proper way to get input from the motion controllers touch pads?

I've been trying to figure out how to get the inputs from the touch pads on the motion controllers but have yet to find out how to do so. Initially I tried doing the following (as it was how I ...
0
votes
1answer
38 views

Swap between first person and eagle eye view cameras, hiding the FP controller

Not sure what has to be done to correctly swap between a generic fps controller camera, to something like an eagle eye view. The idea is to have the player use the FPS controller, then when he get in ...
0
votes
2answers
33 views

Roatating a Game Object downward

In my game I have a rocket which is traveling horizontally across the screen. What I am trying to do is when the player runs out of fuel, the rockets engine stops (already coded) and then the rocket ...
-2
votes
0answers
23 views

Is there a simple way to create a hole in an object in unity [duplicate]

I need to create a hole in a wall for one of my projects, but I'm not quite sure how to do in a way that would be relatively simple without exporting a model into another program.
3
votes
1answer
355 views

Controlling roll rotation when travelling along bezier curves

I am currently working on a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant velocity. Currently ...
1
vote
1answer
453 views

Mesh deformation maya to unity

I have a model that has been modeled & rigged in Maya, whenever i export it as an FBX and take it into unity it seems to collapse at certain areas (see the attachments for a before and after). The ...
0
votes
2answers
73 views

Unity UI, how to hide on play

I have created a menu on Unity using the built in UI components,I can't create this on a seperate scene because I used the toggle button, which basically when you click it, it spawns a specific object ...
0
votes
0answers
40 views

Can anyone see what sort of network issue this is? I am using Photon [closed]

Very similar to my other issue with multiplayer android game. I have read up on Marco Polo tutorials, downloaded the demo projects, seen the Sky Arena videos, seend 2 other multiplayer series, and ...
1
vote
1answer
48 views

Would I need to delete unused assets from my Unity packaged build?

I'm going to make a release for my Unity game. Does Unity include unused assets in build output? Would removing unused assets from a project reduce build size/Time? I want to know if Unity packages ...
1
vote
1answer
513 views

Unity Texture2D raw data TextureFormat problem

I am trying to load raw image data into a Texture2D in Unity using LoadRawTextureData but I can't get it to work correctly. First I receive an array of bytes from an unmanaged function that captures ...
0
votes
0answers
29 views

Unity Editor windows went black

I recently bought a new laptop, with Intel i5-5200U HD graphics 5500 and AMD Radeon R5 M230 2GB and 8gb ram, and heres what happens with my Unity: If open it, minimize it and then maximize again, ...
0
votes
1answer
269 views

Player position on second player connection

I'm having some trouble trying to run my game for the multiplayer part. I'm creating a 2D game. I have followed this tutorial : ...
1
vote
1answer
160 views

How to deal with inconsistent network delay caused by packets arriving at different times in the frame?

I'm developing a multiplayer game that does not have prediction. It implements client-side interpolation. The problem with this is that input delay can be perceived. I've measured the various times ...
2
votes
2answers
567 views

Unity 2D Alpha cutout layer for Sprites

I'm trying to make a simple Fog of War effect for my 2d game, similar to these: . I want to have a sprite layer of black and then have a sprite to cut out itself from the black layer, leaving a ...
0
votes
1answer
285 views

GUI.DrawTexture problem in Unity

I'm having a problem with GUI.DrawTexture() and I'm looking an alternative function to draw 2D Texture Images. The problem I have is that my textures draw above all other objects and when my camera ...
0
votes
3answers
312 views

How do I make so when user moves the camera it doesn't go beyond the scene borders in Unity3D?

How do i make so when i move my camera, it doesn't go beyond the border of the canvas while playing. This is the script i use to make the camera move: if (Input.touchCount > 0 && ...
0
votes
2answers
982 views

Unity3D Resize texture without corruption

I am currently working on a solution to make my game look very pixelated, like Doom or Quake. But there is a big problem. B.T.W I'm not using Unity Pro I render my camera to a 1920x1080 texture, ...
0
votes
3answers
384 views

How do I make sure the player model only moves 1 unit?

I am doing a school assignment based off of the Unity3D tutorial 2D RogueLike (all code available here) In my version though, the movement is not turnbased and I am having some trouble figuring it ...
1
vote
0answers
77 views

Design pattern for RTS game. Is this good or bad?

I've been plugging away at an RTS framework for a few weeks now and I've decided to try out a basic MVC design pattern for Unity based on This Article Anyway I guess I'm just looking for opinions ...
2
votes
3answers
82 views

Calculate average of arbitrary amount of quaternions (recursion)

Simply calculate the average for 2 Quaternions should work like follows right? : Quaternion.Lerp(rotationlist[0].transform.rotation, rotationlist[1].transform.rotation, 0.5f); And now I tried to ...
3
votes
1answer
218 views

Unity too many batches

There are 64k cubes, 64k-1 's materials are assigned to sharedMaterial of first cube. But unity is not batching them together. Only cubes themselves are batched. Static color(but different per cube) ...