Refers to the Editor used to make Unity apps. It features real-time simulation of the game, without the need to build the game and provides the statistics on the game performance.

learn more… | top users | synonyms

0
votes
0answers
12 views

Unity: Default values for SerializedProperty with EditorGUI

I have a custom PropertyDrawer for a serializable object that goes inside a ScriptableObject. When I create new assets from the ScriptableObject, all numeric values on the serializable object are set ...
0
votes
0answers
7 views

Is there a specific file in the NDK that I need to link Unity3d to?

This is Android Development. I'm having issues with Unity saying that Android NDK isnt installed. I gave it the file path to the NDK directory. Its the exact NDK it told me to install (Unity). Do i ...
0
votes
0answers
45 views

how to simulate tank tracks(something that is around all wheels, dont know what is called)

im trying to simulate the part of tank that rotates around all wheels and i dont know what is a good way to do that. can you give me some hints to do that?
0
votes
0answers
28 views

Animation is slow on iOS Device and fast in Unity editor?

I had made a Settings popup in the game and animated it like scale animation (from 0 to 1) values. It is appearing very smooth and works good in the unity Editor, but after building to the device it ...
0
votes
1answer
32 views

Basic billiards game: Can't detect collision between cuestick and cueball

I have a basic Unity project on GitHub. Basically, I have a Cuestick that aims and shoots using the mouse. You can rotate around the cueball with your mouse and when you're ready to shoot, you can ...
0
votes
0answers
28 views

RawImage won't display behind the other elements on my canvas?

New to Unity / Game Dev, though not new to programming. using Version 5.3.4f1 I've created a Canvas object, which contains the Title / Start / Exit text objects. If I add a RawImage to the Canvas, ...
0
votes
0answers
35 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
0answers
15 views

How can I add a material to a property drawer?

I am trying to create a property drawer with the ability to select a material, but for there to also be other components, such as a min-max slider. I have successfully created the min-max slider ...
0
votes
1answer
19 views

how to bring movement and rotation vectors of object in the current scene in unity editor

sometimes in unity i need to zoom to fix the exact position and rotation of an object. but movement and rotation sign of the object always stays on object and i think its pivot of the object. How ...
0
votes
1answer
24 views

InvalidOperationException when peeking from a stack within custom editor

I've got a simple state machine for handling game states which works using GameObjects that I enable/disable in order to switch the states. Since some states can be loaded additively (such as the ...
0
votes
1answer
47 views

Unity3d Resources.LoadAll<Sprite> empty array

In my resources folder structure I have myself a file, now in the unity editor this file is a Texture Type Sprite (2D and UI), now when I attempt to run this code in one of my scripts var icons = ...
0
votes
1answer
49 views

Unity5 - Create navmesh for a random generated environment

I am following this tutorial to create a game with random generated mazes: http://catlikecoding.com/unity/tutorials/maze/ I want to add some monsters to roam around the newly created maze. How can ...
3
votes
1answer
57 views

How to make a custom inspector component

I have a script component, but I want to know how I can add things like sliders buttons etc. I wrote a grid system that generates at the start of my script but I want to run it in editor when I push ...
1
vote
0answers
29 views

Is there a way of making the Unity editor paint decals on surfaces?

I see other engines can do this, here's a video of what I would like to achieve : I think the one on the image uses something that blends the surface and the image, but I just want to be able to ...
4
votes
1answer
74 views

Unity 5: Use Network Simulator, should I?

I am looking to test intelligent prioritisation of a client server game. In my scenario, two clients are connected to the server. I want one client to have a good connection to the server while the ...
1
vote
3answers
18 views

How to get trigger option in unity for imported sketchup model?

How to get trigger option in unity for imported sketchup model? My friend and me are new to game development. we have to submit the game within a week. Please help me. I got an airport model from ...
-1
votes
1answer
287 views

How to display text when mouse hover button in Unity 3D

I have a scene, where a panel containing 24 buttons. I need to show some piece of text when hover a mouse cursor over the button. For example, for detecting clicks, I'm using onClick event trigger, ...
1
vote
0answers
32 views

Disable system sounds in Unity?

I've got an editor script in Unity 5 that uses the cursor position in the scene view to change objects in the scene when you press the space key. This all works perfectly, except that Unity thinks ...
0
votes
0answers
67 views

Unity - Increase the size of elements in a ReorderableList

So I have the following List: Which I have created with the following code: [CustomEditor(typeof(Data))] public class dataInspector : Editor { private ReorderableList ...
4
votes
1answer
106 views

Unity - Adding more functionality to a List<T> Inspector

Let's say I have the following code: public List<Armor> armors = new List<Armor> { new Armor() { name = "Black set", folder = "black_set"}, new Armor() { name = ...
1
vote
0answers
50 views

Mirror problems after building game in unity

Hi I am facing a weird problem in unity when I build a particular scene. Here is the screenshot of how the mirror looks when I play the game from inside the unity editor: And here is how it looks ...
0
votes
0answers
50 views

Unity: Bypass Ctrl+S in a custom Editor Window

Is there a way to bypass Ctrl + S for Windows or ⌘ + S for Apple default behaviour (save scene) in a custom editor window?
0
votes
0answers
15 views

How to scale a bush mesh to 4 when it can only be scaled to 2 in the tree editor in unity

I had bought a unity asset (Yughes pines bushes v2) and the scale of the bushes is too small and so i put the scale to 4 and when i add the bush as a tree in the terrain editor it can only scale to ...
0
votes
2answers
59 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 ...
0
votes
1answer
43 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: ...
0
votes
1answer
44 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
0answers
84 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
0answers
38 views

How to create custom editor script only for one field of an object and leave the rest default in Unity?

I have a script attached to a game object. The script has many public fields and I'm satisfied with how Unity displays most of the fields for editing in the Editor. Except for a few. I'd like to write ...
-1
votes
1answer
56 views

Combining Pause and Start Menu

I got my pause menu working by using this code: using UnityEngine; using System.Collections; public class PauseMenu : MonoBehaviour { public GameObject pauseUI; private bool paused = false; void ...
0
votes
1answer
31 views

Unity Editor equivalent of Playmode Start()

I am attempting to draw gizmos for easy debug in the editor. The gizmos code uses an array that gets populated during the start function. The array only needs to be populated once and may cause issues ...
1
vote
1answer
149 views

Unity3D RigidBody adding force diagonally (x,y,0) results in two separate movements instead of one diagonal movement?

The intentions of this function are to utilize the RigidBody component from a "target" object and clear its force while applying a diagonal force in the direction upwards and away from the side they ...
2
votes
1answer
141 views

Unity3D Joystick Buttons Xbox360 & PS3 have Inconsistent Button Inputs?

I've been browsing through Google and researching button inputs in Unity, and I came across this page. When looking at it I noticed that the B button on the Xbox360 controller is set to Button 1, but ...
1
vote
1answer
37 views

Editor-only circular contour around prefab instances

I have a prefab with radius setting, which programatically controls circular area with some stuff. I want instances of this prefab to display a circle with this radius in editor for convenience. ...
1
vote
0answers
372 views

Using unity app how to read the asset in android SDCard?

I am trying to read one file from my android sd card from my unity application, but its not reading. using the asset bundle i have exported my file and kept in my android device sd card and i am ...
0
votes
0answers
32 views

Unity flipped everything in level

So, I have this problem, where my level shows backfaces instead of normal facing polygons. Even the terrain have the normals flipped and the axes manipulator and object manipulator are black. It use ...
0
votes
0answers
58 views

{Unity3D} Script To Import Assets

I'm making a fps in Unity3D. I would like to know how to import a folder of assets with JS or maybe, but not preferably, with C#. The desired script will reference a directory and tell the code to ...
0
votes
3answers
107 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- ...
7
votes
3answers
937 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
vote
1answer
355 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 ...
0
votes
1answer
70 views

Oculus Integration on Unity 5.1.2 not showing Oculus Lenses (like two black boxes) when debugging/editor

I added Oculus Utilities for Unity 5.1.2, created a simple scene, added OVRCharacterController prefab, it works fine like normal fps controller but as far as I know, it should show something like 2 ...
2
votes
2answers
1k views

How to display a list of 2D arrays in the inspector

Simply put, how do I make public List<bool[,]> appear in the inspector? Every 'bool[,]' is a solution to a puzzle in my game and I want to be able to view and edit them in the inspector.
2
votes
2answers
268 views

In the Unity Editor, how do I find prefabs containing a specific component?

I want to find all prefabs in the project that contain a specific Component? I only need this in-editor; no need at runtime. If they are in added to the Scene, I can right-click and Find References ...
1
vote
0answers
104 views

How do I force Unity to reload editor scripts

I am working of some editor scripts for Unity but have found that it is difficult to force Unity to reload my editor scripts. My scripts are modelled on the static constructor approach and perform ...
0
votes
1answer
585 views

How to animate objects in Unity 3D

Yesterday I played around with Unity 4.6 and I came up with a question about animation. I have an fps-survival project (most for educational purpose). I use the default build-in fps camera ...
2
votes
1answer
140 views

Unity: How to make script work with duplicated objects?

I have an object in my game that, when clicked, causes the player to move toward it. It does this by sending its position to the player's SetTarget function. The player's Move function then heads ...
3
votes
1answer
255 views

Where does Unity save the editor window layouts?

In every project there are the CurrentLayout.dwlt and CurrentMaximizeLayout.dwlt files, but those, as the name implies, are just the current layouts. I've been unable to find the general files where ...