327 questions
-1
votes
1
answer
109
views
How to show the camera's view frustum lines in the Unity Scene editor? (whitout selecting) [closed]
I'm working on a Unity project where I need to constantly monitor the main camera's perspective. By default, the white lines showing the camera's view frustum are only visible in the Scene window when ...
0
votes
1
answer
76
views
Unity build failed; CommandInvokationFailure: Gradle build failed
Unity: 2023.2.18f1
Selected Platform: Android
Firebase SDK: 12.10.1
External Dependency Manager for Unity: 1.2.186
Facing CommandInvokationFailure: Gradle build failed. issue. I have tried all the ...
1
vote
1
answer
110
views
How can I ensure that all prefabs dragged from the assets to the scene are placed at (0, 0, 0) relative to their parent?
I have a handful of prefabs in my project's assets which I am frequently dragging into and out of the scene in order to test them sequentially after changing the code in their attached scripts. They ...
0
votes
0
answers
26
views
Unity Editor error: it shows variable name not text
I installed unity version control package from unity registry. But it looks something wrong.
See tab title under Unity Version Control. It shows variable name not text assigned that.
These problems ...
1
vote
1
answer
210
views
How to make ReorderableList elements expand and resize correctly in inspector?
I have a list of objects that I display in the editor using a CustomPropertyDrawer
currently I store that list using a ReorderableList, for which I have overriden drawElementCallback and ...
0
votes
0
answers
115
views
Performance vs flexibility in a Unity Node Graph Editor Tool
I'm developing a node-based editor tool in Unity with pure UIToolkit (no existing graph frameworks). The premise is that the graph needs to be scene-based, so it's a Monobehaviour, rather than a ...
0
votes
0
answers
35
views
How do I place a button in an element of the Unity Editor array?
Hello everyone I am trying to place the button in my AnimationData, which has a custom PropertyDrawer, so that later in the AnimatedObject object, which has a list of such AnimationData, it is ...
0
votes
1
answer
61
views
Error code CS1061, and SerializeField not showing in the Unity Editor / C# [closed]
I'm having some problems with my code, and I'm not sure how to solve it, as I'm still new to programming. Any help or advice would be greatly appreciated
using System.Collections;
using System....
0
votes
2
answers
378
views
Unity Editor - [InitializeOnLoadMethod] Get executed multiple time in background
I've a weird issue in an Unity Editor script. I Created the code below as a minimal example to reproduce the issue, and the explanation of what's happening.
I'm using Unity version 2023.2.9f1
Script ...
3
votes
1
answer
213
views
High GPU Usage in Unity Editor with 4K Monitor and HDRP in Empty Scene
I recently upgraded my monitor, switching from 2K 144Hz to 4K 60Hz, and I didn’t expect much of a performance difference — and for most applications, there isn’t. However, my Unity Editor has gone ...
0
votes
0
answers
38
views
Unity Custom Class List Serialisation with Enum Type [duplicate]
I am trying to serialise a list of a custom class in Unity's inspector. This class contains a enum type of PlayerOptionType. However, whenever I try to add a instance of this to the list in the ...
0
votes
1
answer
104
views
Unity property dropdown changes all values of array
I want to do a dropdown menu that works similar to the tag system but for my sound names. However, whenever I have my custom properties in a container and I change one of them, every other property ...
0
votes
1
answer
104
views
Issues with Unity Engine's Camera.ScreenToWorldPoint() in edit mode
I am programming an editor window in Unity so I can make board games quickly. My issue revolves around the ScreenToWorldPoint() making the script think the previous tile is in a completely different ...
1
vote
1
answer
163
views
ScriptableObject changes in Awake() not displayed in Inspector until after Unity restart
I've created a ScriptableObject class MySO that gets modified in its Awake() function. I also added EditorUtility.SetDirty(this); as its last command. The class has a List<someOtherClass> myList ...
0
votes
1
answer
2k
views
Error CS2006: Command-line syntax error: Missing '<text>' for '-define:' option when installing URP in Unity 2021.3.15f1c1
I encountered the following error when installing URP into an existing project:
error CS2006: Command-line syntax error: Missing '<text>' for '-define:' option
I couldn't find any solutions ...
0
votes
1
answer
113
views
Selecting an 150MB ScriptableObject even with an empty custom inspector is very slow (Unity)
I have this large ScriptableObject (+150MB) storing various data related to in-game characters.
When selected, the Unity Editor slows down considerably, my first idea was to make a custom inspector ...
3
votes
1
answer
41
views
The list in the inspector displays the class as standard, although the class has a custom inspector
I need to store a long list of "DataFrame" classes. The "DataFrame" has a lot of fields, so it stretches down a lot.
I want to make a custom inspector for the DataFrame so that all ...
1
vote
2
answers
111
views
Project tab does not show all the files/folders in Unity Editor after build APK file
I'm learning Unity Editor. After I had build my application to test on android device. Most of my folders and files in Assets were lost in Project tab. I can still see it in Explorer but Unity Editor ...
0
votes
1
answer
194
views
How can I get override base of Prefab Variant in Unity?
How can I get Prefab Variant's "base" (Field named "Prefab" in picture) from Editor script?
I'm on Unity 2022.3, but UnityEditor.PrefabUtility seems do not have corresponding ...
0
votes
1
answer
914
views
Grid with auto-sizing cells in Unity
In Unity I want to achieve the following in a UI/Canvas Scene:
Header text - use 10% of the available screen height, so the font should size accordingly.
In the remaining 90%, add two rows, each with ...
1
vote
0
answers
37
views
Simply adding a CustomEditor to a ScriptableObject causes weird inspector behavior
I have a scriptable object that holds a list of 200 items. Before adding any sort of custom editor to the scriptable object, the inspector looks like this
Now simply adding an empty custom editor to ...
1
vote
0
answers
27
views
Unity cannot create Model types prefab in code
The Unity code creates a prefab of type PrefabAssetType.Model.
I want to create a prefab of type "Model", but I always create a "Regular" type, a Model type, and a model type. It ...
1
vote
0
answers
80
views
Unity NewGraph Tool does not handle all cases of Enter Playmode Settings
In a Unity project I'm using the NewGraph node editor and am using a Monobehaviour-based graph (derived from MonoGraphModel). Now when using the following combo of "Enter Playmode Settings" (...
0
votes
1
answer
120
views
How to remove the default menus and buttons from Unity editor?
Is it possible to remove default menu buttons like the Play Pause buttons from the Unity editor? Also, can I add custom dropdowns in addition to the default dropdowns like Layers and Layout?
Check the ...
1
vote
0
answers
286
views
"Parent directory is not in asset database" Error in Unity AssetDatabase.MoveAsset Despite Creating Folder
I'm encountering the "Parent directory is not in asset database" error when using AssetDatabase.MoveAsset in a Unity Editor script. This happens even though I've implemented the following ...
0
votes
1
answer
295
views
Custom Hot keys in Unity editor [duplicate]
I want to change my shading mode with custom hot key. Is there any kind of way to set your custom hot keys, in unity editor 2022.3f LTS?
I have tried to find out the way. How, we can make our custom ...
1
vote
0
answers
454
views
Unity does not detect or open external script editor
I install Unity Hub 3.2.0 and Unity 2021.3.35f1. Then I tried to change external script editor to VS2019, but the unity option didn't show any external editors. So I added manually devenv.exe file ...
0
votes
1
answer
354
views
Custom inspector not showing PropertyField when displayed through another class (UIElements)
There is a Monobehaviour class which has a property planeSettings for an scriptable object. For the scriptable object and the monobehaviours class i created custom inspectors which utilize UIElements.
...
0
votes
1
answer
494
views
unity inspector editor dropdown menu with images
I want make dropdown menu to choose image from given. The problem is that image doesn't show in dropdown, only in already chosen. So I can see image only after I choose it from dropdown.
I need every ...
1
vote
1
answer
557
views
Unity project stopped building in a reinstalled editor
I have a project that built just fine, then i had to reinstall unity and download the specific editor that I was using (21.3.4f1). Now my project will not build, or builds with corrupt (jittery) ...
0
votes
0
answers
96
views
Vuforia Engine Unity: Successful test in editor, but image tracking fails on iOS (iOS 17) device – What might be causing this issue?
I'm currently working with the Vuforia Engine in Unity and encountered a puzzling problem. I followed the basic getting started guide for testing purposes, and everything appears to work seamlessly ...
3
votes
8
answers
11k
views
Internal build system error. read the full binlog without getting a BuildFinishedMessage, while the backend process is still running
I just can't use Unity! Every time when I want to open my project I have an error and Unity reccomends me to open project in Safe Mode. When the project's opening is finished (doesn't matter if I open ...
0
votes
1
answer
302
views
Upgrade from Google VR to Google Cardboard XR Plugin…limiting reticle distance and using event triggers component in editor
TL;DR
After upgrading from Google VR to Google Cardboard XR Plugin. Looking for documentation/advice on:
How to use the Event Trigger component in the editor rather than code
How to limit the ...
-1
votes
1
answer
89
views
For GUI, is there any way to get actual position of a slider thumb? (Whatever GUI.HorizontalSlider, GUILayout.HorizontalSlider, EditorWindow.IntSlider
I'm trying to code an Editor-only window similar to Animation or Timeline.
At present, stucking in the slider thumb, which usually looks like a vertical line across the tracks.
Two ideas to implement ...
0
votes
0
answers
82
views
Video works well in Unity Editor but NOT in Android phone (Unity APK)
After I build my app into .apk file and launched in my android phone, it only show the starting sequence of the video without the video playing and no sound. It works well in Unity Editor but not in ...
-1
votes
1
answer
166
views
Unity. Get the current IMGUI drawing target. Screen or EditorWindow/Popup
I'm developing a class that can draw the interface both in the game and in the editor.
Now I manually specify which mode to work. Because some functions are not available in different modes
class ...
0
votes
0
answers
99
views
In Unity Editor everything works fine, but in the build version it doesn't
help please, my code in Unity Editor is working perfectly fine, but in build everything is not working properly. Here are the errors I get in the built version of the game:
> NullReferenceException:...
0
votes
2
answers
300
views
Unity child game objects not becoming active when parent.SetActive(true);?
I have a very unique bug when I dynamically switch between menus by setting them to active/inactive with .SetActive(). The bug is that one and only one of the menus is not recursively setting its ...
0
votes
1
answer
441
views
Unity custom editor losing values on Playmode
I am working on my personal toy project and custom editor is causing me some trouble.
I realized that all variables must be serializable to store values even after the Unity client is terminated.
...
0
votes
0
answers
341
views
Creating a transparent window within Unity window
I'm planning to write an editor window. When I open this editor window, I want it to start from the last mouse position and have a transparent background. How can I achieve this?
Based on my research, ...
0
votes
1
answer
228
views
3DModel loaded from an Asset bundle does not show up in scene on Android, but works in Unity Editor
I'm downloading Asset bundles built for Android platform from server. These Asset bundles contain prefabs, 3D model files and textures of the model. I'm then using the Asset bundle to spawn the prefab ...
0
votes
2
answers
611
views
Unity editor script that will make a visual object field for an array element and will let me edit it
I have a script in which I have declared an array of sprites.
I want to represent it in a nice way in the editor and don't want to make it noticeable that it's an array.
This is what my script looks ...
0
votes
1
answer
116
views
GameObjects materials appearing in Editor but not in Build (disappearing) Problem
As you can see in the editor, I can see and control the player character, but in the build I can only move the player character, but I can't see it! also some other GameObjects materials doesn't ...
0
votes
0
answers
128
views
In Unity, how to apply Priority change of MenuItem immediately?
If I change the priority of a menuitem, it won’t take effect immediately.(The menuitem will be in the same order, ignore the change.)
I have to restart the editor to apply the priority change.
What ...
0
votes
1
answer
920
views
Is there a way to add a button in the unity editor like unity services?
I would want to make a button like this. Is there a way or is it just not possible?
I looked over the documentation but couldn't find what I was looking for. Just buttons for the inspector, menu items,...
0
votes
0
answers
33
views
Unity MenuItem Fading
I want the MenuItem to be transparent
But it completely disappears from the list of items.
The script I used:
using UnityEditor;
public class Example
{
static bool showMenu = false;
[...
0
votes
1
answer
1k
views
How to create a checkerboard tile pattern in Unity?
I'm trying to create a checkerboard alternating tile in Unity, but creating it by hand is time-consuming and cumbersome.
I tried creating a rule tile to achieve the checkered effect, but it hasn't ...
1
vote
0
answers
100
views
Can not get the following UI (see Image) correctly in Unity Editor in World Space (LayoutGroup, LayoutElement, ContentSizeFitter, ...)
i know this might be a lot to ask, but unfortunately i can not get the following UI working in Unity. I experimented a lot with Content Size Fitter, Vertical and Horizontal Layout Groups and Layout ...
1
vote
0
answers
217
views
How do I delete GameObjects in a prefab variant? (EditorCode)
I am currently working on a room editor.
The room is a base prefab with scripts.
It has a child transform with tiles, which is empty.
In my editor, I instantiate a base prefab room, and design ...
0
votes
0
answers
188
views
How to edit a background of a list using EditorStyles
I must change the list background texture, that list are located in a node I use the asset xNode to do that.
That is the code of NodeEditor, is the class I use to edit the node layout.
using ...