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
0answers
14 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
23 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
30 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
45 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
32 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
142 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
34 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
20 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: ...
1
vote
2answers
213 views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
0
votes
1answer
26 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
70 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
73 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
71 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
0answers
29 views

Creating scriptable object with scene data in editor

This question is about the use of scriptable objects. I am currently developing a game which should have many levels. I already created a system to stay in one scene and load the data from an ...
0
votes
1answer
58 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
24 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
576 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
57 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
317 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
1k 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
239 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
50 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
543 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
92 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
139 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
109 views

How to style EditorGUI field

You can style EditorGUILayout field with following code: ...
0
votes
1answer
2k 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
988 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
230 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
159 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
139 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
2k 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
87 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
714 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
767 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
546 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
331 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 ...
3
votes
2answers
5k 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
291 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 ...
1
vote
0answers
59 views

Unity: Editor Window not Syncing

I have four scripts: Engine has a list of MovementWaypoints. EngineEditor simply displays a ...
3
votes
0answers
248 views

Custom Inspector for textures?

I am working with an open source project called Project Porcupine. The project is a game engine for a base building game that allows for one to extend the game. We have a system to read texture files, ...
1
vote
2answers
1k views

how to get current zoom level from scene window

I want to show some label on some rect transforms using Handles.Label(). it shows the text with a default font size regardless of the zoom level in the scene window....
1
vote
0answers
304 views

Handle actor deletion undo in Unreal Editor?

I have some objects pointing to a scene component of an actor: class MyObject { USceneComponent* Component; } When the actor is deleted, all its components ...
2
votes
1answer
512 views

LibGDX's particle emitter - Multiple particles in the same effect?

Hello everyone reading this, I've used the particle editor to edit an effect to put in my game. Is it possible to have multiple and randomly emitted images (particles) instead of one? I don't want ...
0
votes
1answer
1k views

2d canvas representation in c++ code

I would like to create a basic 2d graphics program to do very simple editing of in game assets. My question, starting out how could I represent the canvas? Let's say I know i'll need a canvas ...