Questions tagged [editors]

Editors are pieces of software designed to help create and modify game content. This may include in-house developer tools, or level editors and other tools released to the player community. Use this tag for help creating your own editing tools, or customizing editing workflows in existing engines (such as custom inspectors in Unity)

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

How to author custom objects in a tile map?

I've been using Tiled for my game engine but for objects I have to use points on an object layer and give it a name and use that to create map items in-game. This is really inefficient as I don't want ...
0
votes
1answer
26 views

How to run 'Call in Editor' Functions that are implemented in Level Blueprints?

I have a Blueprint Function within a Level Blueprint, marked as Call In Editor. How can I ...
0
votes
0answers
21 views

Is it possible to edit a Vector3 in the inspector by clicking on the scene?

I have a component that represents an NPC that patrols between several waypoints. Initially I represented each waypoint as a simple Vector3, so the component had a serialized field of type Vector3[]....
0
votes
1answer
59 views

Ray casting through terrain mesh + Octree ( Mesh collision )

I'm currently in development of a terrain editor which i will use for my game. One thing that is partially stopping my development is that I don't have collision detection implemented between mouse ...
0
votes
1answer
47 views

I accidently changed the cursor image in Unity

In the Unity Editor I accidently changed the image for the mouse cursor in project settings > player How can I restore it to the default, preferably not through programming?
0
votes
1answer
46 views

Is there a wall building tool in unity3d?

I'm currently building a maze game in unity 3d and after building a few levels by placing and repositioning cubes by hand as walls, I think, that it would be nice if there was a tool to place walls, ...
1
vote
0answers
46 views

How to extend GameMaker Studio's IDE editor, like in Unity?

Unity allows you to create custom inspectors, custom editor windows and custom property drawers. Is there a counterpart of this in GameMaker Studio 2.x or isn't it possible yet?
0
votes
0answers
19 views

Preview Clip of AudioSource, with audioSource settings in editor

I have a custom editor script wich permit me to add some behavior to a unity components: Here you see the extra extensions with the "test" label. I would like to add in that audio source editor, the ...
0
votes
0answers
30 views

Batch resizing of textures

I have a large number of png files that I need resize so the sides are in powers of 2 without stretching the images in those files. Basically add/remove white-space so the image is in the upper left ...
0
votes
0answers
32 views

How to visually edit a road graph?

I wanted to make GPS navigation in my game. For this I need to make a graph of all roads. I just want to load the image of the map as a substrate and draw all the nodes and edges of the graph on it. ...
1
vote
1answer
133 views

How to reference nameof private serialized field in unity custom inspector

I'm running into a problem that I think will seriously affect maintainability down the road, so I'd like to figure it out now before it becomes a problem. I've been starting to use private [...
0
votes
1answer
78 views

Unity List script field with +/- buttons in editor

I am using Unity 2018.4.11f1 LTS. I have a script with a public List<GameObject> field. In the property inspector, Unity provides a UI to this field where ...
3
votes
2answers
223 views

Is there a way to customize the Game-view Editor GUI?

I need to add a simple slider like scale slider in Game-view to change the timescale because I usually test my games by changing timescale.
1
vote
1answer
70 views

Unity Event Pause/Unpause & jump frame

Hello, I would like to get in a script the event whenever we click on the pause button, or the Jump frame button. I have already manage the Pause button: ...
0
votes
0answers
39 views

Begin and End event of Handles.PositionHandle in Unity

I am making a tools using Handles.PositionHandle(). It create a movable 3D handle in the scene view. I use that code to move an object with it: ...
2
votes
2answers
744 views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
0
votes
1answer
40 views

Prevent VS Code opening the Unity scripts twice

Is it possible to prevent VS Code opening the Unity scripts twice? E.g. I opened Unity project, double clicked a script and got my project (Assets folder) opened in VS Code, now I go to Unity make a ...
0
votes
2answers
204 views

How to get EditorWindow client rect?

I want to create a simple console-like custom EditorWindow in Unity. There is a bunch of lables (console lines). I'm using GUILayout.Begi/EndScrollView to position all the labels in one column. The ...
0
votes
1answer
183 views

AudioClip generated by an external process and loaded into the editor has no samples

I'm working on a custom ScriptedImporter -- let's call it LmmsImporter -- that loads project files from the LMMS sequencer as <...
0
votes
1answer
103 views

Unity: Saving scene after using script to change object positions

I have a c# script which makes some edits to object positions in the editor. It does this by reading some values from a csv file and then changing the value of ...
0
votes
1answer
75 views

OnInspectorGUI Custom properties are not displayed in the right order

I basically made a lot of research and wasn´t able to find any solution. So my problem: I´ve made some variables disappear/appear depending on an enum with a custom editor script. But if they appear ...
0
votes
0answers
33 views

Spin camera around origin/focus in Unity editor

I have used Blender a bit, and like the way the camera in the editor orbits around the focus/origin when dragging with middle click. I've recently been using Unity a little and despise the camera ...
0
votes
1answer
849 views

Unity SceneView Positionning object with mouse position in Editor script

I would like to create an editor tool who can change the position of an object in the scene view into other object in the world, based on mouse position, like in the picture bellow (the red pyramid is ...
0
votes
1answer
77 views

Why is the Position Handle placed at certain distance away from vector3 unit in Unity?

I have a vector3 value that I am setting in inspector and I am drawing a ray using OnDrawGizoms to draw that vector line. However, the position handle I made using ...
0
votes
1answer
29 views

How to know the adresses an editor modifies while saving a file

I hope this question belongs here. Suppose an editor for a specific file extension. It usually has a user friendly interface so you don't see raw data. Once you edit anything and save the editor ...
0
votes
2answers
459 views

SerializedProperty to UnityEvent in a Custom Editor

I am making a Custom Editor for a type that includes a UnityEvent property. I'm currently facing an issue in converting a SerializedProperty to get that UnityEvent. Here is how I declare the event ...
0
votes
0answers
2k views

Unity 2018.3.0f2 Blank Errors

I am getting these blank errors in unity for quite a while now, as soon as I create a new Project 2D or 3D I am presented with the following and can't enter in play mode. And as a workaround I have ...
0
votes
1answer
288 views

Unity GameObject.Find() not working in batchmode?

I am trying to make GameObject.Find() work in batchmode but for some reason it returns a null object. my code: ...
0
votes
1answer
54 views

In Unity, how do get access to animation clips in selected model from EditorWindow?

I need to add some animation events or copy them from other models. So I decided to make a EditorWindow. Unfortunately there's not much information about this, and I'm stuck in here. ...
0
votes
1answer
848 views

C++ - How to create an engine editor without frameworks like qt and wxWidgets?

Basically sometimes I like to try to venture into the world of graphics computing, sometimes I have a project or another that uses opengl plus all the "blind" with opengl, I wanted to be able to ...
1
vote
2answers
136 views

Execute script in edit mode when scripts finish compiling, without an object in the scene

I need to inspect some method information before game starts to implement something in Unity. I can run the script by [ExecuteInEditMode] attribute, however it only works if at least one object in ...
1
vote
0answers
145 views

Render imgui on top of existing Java framework

I have never done this before, but we need to build game editor, on top of our existing java game SDK. We want to use java version of imgui. I can easily create imgui window and put UI into it, but ...
0
votes
0answers
140 views

How to style EditorGUI field

You can style EditorGUILayout field with following code: ...
0
votes
1answer
3k views

How to get image/icon/texture of asset from project window

I want to get image of any asset from code. Unity can display assets as with images of those assets. Is there a way to get that image from code? I need it to be able to display it in the inspector. <...
1
vote
2answers
37 views

Update dependent values of Serializable C# classes on Inspector

I have some data types' properties that depend on the input given into other attributes, but I haven't found in the Unity's API an elegant way to update them automagically on the Inspector. As an ...
1
vote
1answer
2k views

My [MenuItem()] is not being added to the menu

In Unity 5, I created a ScriptableObject class which adds itself to the Main Menu: ...
0
votes
0answers
262 views

Draw Lines on Camera's Viewport

I wanted to know if there is a way to draw lines on the viewport, just like on the example image I am posting. My idea is to have a method that receives 2 Vector2, the origin and the end of the line, ...
0
votes
1answer
162 views

Locking value when creating tweaking dependent values

I have several values which adjust them self In Unity Inspector when I tweak one of them. So total sum of these values stays constant. (which is 100 as 100%) Sometimes it is hard to get specific ...
0
votes
1answer
234 views

Unity 3D - Have a Vector3 attribute on inspector that behaves as GameObject's Transform position Vector3

As the title suggests, I am looking to serialize on the Inspector a Vector3 that behaves just as the Transform's position Vector3: If you modify the position Vector3, the GameObject positions itself ...
4
votes
1answer
3k views

Mute sound in editor in Unity

Is it possible to mute sound in editor in Unity? I mean not in the game, but in the editor, so that when I am debugging there would be no sound whatsoever.
1
vote
1answer
131 views

How to flush changes in PlayerSettings inside Editor

I have a script which works only in the Editor. The script makes changes inside PlayerSettings. However, the changes made are flushed to the hard drive just after something in Unity is saved for ...
3
votes
0answers
834 views

Choose Atom as my script editor for Unity3D, problem with autocomplete

I am trying to configure Atom, so that when I edit my C# scripts from my project, I am aided by the Unity autocomplete. So far, I am able to open the project and every time I type an error in Atom, ...
1
vote
1answer
948 views

How can I make a Custom Inspector display a UnityEvent method selection widget like the Button OnClick Inspector?

I know that UnityEvents display themselves automatically with the default inspector. But what if you create a custom inspector by extending the Editor class? The fields don't draw automatically since ...
2
votes
3answers
671 views

How to make Unity Layout switch while in Play mode

I'm looking for a way to auto switch the Unity layout when I go to play mode. I want to Unity Editor layout automatically ...
1
vote
1answer
390 views

Create Script from custom templates issue: They are created with the default name and cannot been named on creation

I was just being introduced to the AssetDatabase class, and I was curious of creating Script Templates, such as Interfaces, pure C# classes, and a MonoBehaviour template more suitable for my work ...
4
votes
2answers
6k views

Custom editor script not updating when values are changed from script?

I have a custom editor script which I have used to neatly arrange a huge group of variables into tabs. Some of these variables change in the script and it's very useful to see what they are without ...
0
votes
1answer
39 views

How can I see whether my sprite is .png or .jpg in the Inspector view or some place alike in Unity?

How can I see whether my sprite is .png or .jpg in the Inspector view or some place alike in Unity? Here is an example of me ...
0
votes
1answer
307 views

Look rotation viewing vector is zero in Unity when making UI

How can I tackle the problem: Look rotation viewing vector is zero? Here is how I get it: I add an Image from UI. When the Image is added I click on it in the ...
0
votes
1answer
4k views

Unity - Exposing a function to the inspector

I wish to expose a script's function to the inspector, but I have no clue how to. I found something about Invoke() which was a start, but it isn't clear how to ...