Skip to main content

Questions tagged [unity-editor]

The tag has no usage guidance, but it has a tag wiki.

unity-editor
-7 votes
0 answers
52 views

How To Access An Item In A Struct Which Is In An Array [closed]

I am making a tower defense game and used structs in an array and want to access an item in the structs. I don't want to use a 2d array as that can't show up in a unity editor. I tried tutorials and ...
Simon Y's user avatar
1 vote
1 answer
47 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 ...
Gabriel Balassa Turu's user avatar
0 votes
0 answers
50 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 ...
L LIU's user avatar
  • 11
0 votes
0 answers
45 views

Why does unity editor installer get stuck on validating while downloading

When I try to install the Unity Editor from Unity Hub, the download gets stuck on validating: I tried different versions but it just wouldn't work and when I restart my computer it just vanishes.
Luka Gogichaishvili's user avatar
0 votes
0 answers
25 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 ...
Mandark's user avatar
  • 818
3 votes
1 answer
33 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 ...
Aiden VMR's user avatar
1 vote
2 answers
17 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 ...
Trần Thanh Sơn's user avatar
0 votes
1 answer
47 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 ...
user-id-14900042's user avatar
0 votes
1 answer
98 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 ...
soleil's user avatar
  • 12.8k
0 votes
0 answers
11 views

Unity rigidbody and colliders send everything spinning

So I have my player with a rigidbody (use gravity false and is kinematic false), and a capsule collider (isTrigger false) but when they move around the room, I want the walls to stop them, the walls I ...
Julia's user avatar
  • 1
1 vote
0 answers
20 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 ...
Nick Hudson's user avatar
1 vote
0 answers
20 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 ...
Young Huang's user avatar
1 vote
0 answers
50 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" (...
Martin's user avatar
  • 67
0 votes
1 answer
56 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 ...
Sivabalan M's user avatar
1 vote
0 answers
84 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 ...
Arjun Mehta's user avatar

15 30 50 per page
1
2 3 4 5
22