Questions tagged [unity-editor]

Unity Editor is a software that allows you to create video games and simulations using Unity Engine. Both are developed by Unity Technologies.

Take a look at the documentation to see what it is capable of.

300 questions
16
votes
2 answers

How to create an illustrator/photoshop-like pentool for creating bezier curves in Unity

I need to create complex segmented bezier curves so I want update the code to create illustrator/photoshop-like pen tool bezier curves. This video shows how the pentool behaves. Please note that instead of creating a quadratic bezier curve with the…
hutfelt
  • 321
  • 1
  • 8
15
votes
8 answers

how to clone several game objects in a way that clone properties of one can be adjusted to match all others in scene view

I asked How can I adjust shape/dimensions of one clone to affect all other clones in the scene view and the accepted answer was spot on. It could only clone one game object. I tried making some adjustments but the only solution I came up with was…
NSSwift
  • 395
  • 1
  • 12
11
votes
1 answer

How to use a Google account to authenticate users in Unity?

Firebase Authentication allows you to authenticate using auth tokens from other sign in providers (Facebook, Twitter etc). My app is intended to release on iOS and Android. I figured that authenticating with Google and Apple would give me a 99%…
Phedg1
  • 1,888
  • 3
  • 18
  • 35
10
votes
4 answers

How to enable/disable a List in Unity inspector using a bool?

I have a ScriptableObject script called Level, inside the level script I have a List of GameObjects and a bool variable called introduceNewEnemies. What i'm trying to do is that: I want to enable that List of gameobjects when the bool variable is on…
user11746000
9
votes
1 answer

How to select elements in nested ReorderableList in a CustomEditor?

I have a ReorderableList in my CustomEditor script. In the drawElementCallback I added a second nested ReorderableList. Everything works fine and I can add elements to both lists like here BUT as you can see for some reason I can not select the…
derHugo
  • 83,094
  • 9
  • 75
  • 115
9
votes
2 answers

How to have custom script icons other than using "Assets/Gizmos" in Unity3D

I know this was asked a lot of times probably .. but it is very often answered wrong. What I want is: Use a custom icon for specific components/scripts in the Inspector (e.g. Figure 2 and Figure 3) and the ProjectView (e.g. Figure 1) What I do so…
derHugo
  • 83,094
  • 9
  • 75
  • 115
7
votes
1 answer

Does the GUIStyle.hover state apply to Unity Editor labels (or other controls besides Button)?

I am creating a custom editor window in Unity. I want to have a label change color when the mouse hovers over it. To accomplish this, it would seem that this should work: GUI.skin.label.hover.textColor = Color.red; GUILayout.Label("My…
vargonian
  • 3,064
  • 3
  • 27
  • 36
5
votes
3 answers

How to make an enum-like Unity inspector drop-down menu from a string array with C#?

I'm making a Unity C# script that is meant to be used by other people as a character dialog tool to write out conversations between multiple game characters. I have a DialogueElement class and then I create a list of DialogueElement objects. Each…
Jorge Luque
  • 435
  • 1
  • 4
  • 17
5
votes
0 answers

Unity's IPreprocessBuildWithReport.OnPreprocessBuild throws an error

I got a tiny script that creates a text file in Resources folder before building that needs to be included in the build. So I wrote this script using Unity's IPreprocessBuildWithReport: using UnityEngine; using UnityEditor; using…
Nika Kasradze
  • 2,834
  • 3
  • 25
  • 48
5
votes
1 answer

How can I adjust shape/dimensions of one clone to affect all other clones in the scene view

I would like to change/adjust the shape/dimensions of several cloned objects within the scene view by adjusting one. This object could be say a quad or a line renderer that needs to be extended. For example as one game objects line renderer is…
NSSwift
  • 395
  • 1
  • 12
5
votes
2 answers

How to get the path to the current directory? (ScriptableObject, UnityEditor.AssetDatabase)

Sorry for my English (Google Translate). The following is a snippet of code that creates an asset (ScriptableObject) in the selected directory (Assets/Resources/TestObject.asset): [MenuItem("Assets/Create/Test Object")] private static void…
marsep
  • 51
  • 1
  • 4
4
votes
1 answer

Unity error: Internal build system error. Backend exited with code 2. tundra: error: Unexpected stdin

I am getting this error when I modified one file(any file that belong to the asset aimfluent chatbot) after running the application. It won't appear when I am editing other file except aimfluent asset scripts (I am not using firebase). I am using…
4
votes
2 answers

Unity3D Display a UnityEvent Corrrectly in a ReorderableList

I am trying to make a custom inspector for my sequence class. The idea is to allow the user to configure various UnityEvents that get called at the start or the end of a sequence. I want to have a collection of sequences in a ReorderableList so that…
MattFace
  • 317
  • 3
  • 14
4
votes
2 answers

Unity: Application keeps running in background although Application.runInBackground is false

I'm currently developing some Unity project(this is my first one, I'm not familiar with Unity) and what bothers me is that breakpoints are still hitting when I minimize Unity editor window although I have Application.runInBackground == false so the…
Jim Smith
  • 41
  • 1
  • 2
4
votes
4 answers

if Unity will include the chunk of code in apk if I write it in "UNITY_EDITOR"

Example: If I write following code in a Script file. #if UNITY_EDITOR Debug.Log( "I'll print in Editor only.." ); #endif My question is that when creating an apk build will this chuck of code will be added into apk build although it will not run…
Zaheer
  • 402
  • 6
  • 20
1
2 3
19 20