How to make an EDITOR WINDOW in Unity

How to make an EDITOR WINDOW in Unity

Brackeys

6 лет назад

323,029 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@YaroslavKovalevStudio
@YaroslavKovalevStudio - 02.08.2023 16:40

Я научился разрабатывать игры именно по твоим видео))
Спасибо, мужик! )

Ответить
@barbarosking3694
@barbarosking3694 - 03.10.2022 07:43

how to colorize 2d sprites that have no matier?

Ответить
@joannbumiller8452
@joannbumiller8452 - 22.07.2022 15:12

Many boys

Ответить
@kamiinari.
@kamiinari. - 10.12.2021 02:30

Gooie system

Ответить
@spongekim4674
@spongekim4674 - 09.11.2021 11:29

Thank you. It's awesome.

Ответить
@legendaryswordsman2279
@legendaryswordsman2279 - 22.10.2021 10:50

Yet another great vid by Brackeys, keep up the good work, now I just need to figure out how to do more advanced stuff with editor windows

Ответить
@Warpgatez
@Warpgatez - 10.10.2021 02:25

Come back.

Ответить
@gdemirkan
@gdemirkan - 25.07.2021 18:33

after editing scene with custom editor you can save with the code below:

string[] path = EditorSceneManager.GetActiveScene().path.Split(char.Parse("/"));
EditorSceneManager.SaveScene(EditorSceneManager.GetActiveScene(), string.Join("/", path));

Ответить
@theeternal6890
@theeternal6890 - 11.06.2021 05:06

Is there any way I can make this using Unity Bolt.

Ответить
@anandsuralkar2947
@anandsuralkar2947 - 09.06.2021 15:25

bro i am so late here i am gonna cry ur my saviour almost lost hope in completing my game this saved me

Ответить
@DuyNguyen-yc1wj
@DuyNguyen-yc1wj - 11.05.2021 07:14

Nice video! I suggest that u should add a guide to update the color of selected object to the editor window.

Ответить
@xenosshade6972
@xenosshade6972 - 27.03.2021 21:35

for some reason it colors all objects not just one for me
using UnityEngine;
using UnityEditor;

public class ExampleWindow : EditorWindow
{
Color color;

[MenuItem("Window/Colorizer")]
public static void ShowWindow()
{
GetWindow<ExampleWindow>("Colorizer");
}

void OnGUI()
{
GUILayout.Label("Color the selected objects!", EditorStyles.boldLabel);

color = EditorGUILayout.ColorField("Color", color);

if (GUILayout.Button("COLORIZE!"))
{
Colorize();
}
}

void Colorize()
{
foreach (GameObject obj in Selection.gameObjects)
{
Renderer renderer = obj.GetComponent<Renderer>();
if (renderer != null)
{
renderer.sharedMaterial.color = color;
}
}
}
}

Ответить
@syllebrix5784
@syllebrix5784 - 13.02.2021 12:45

it deleted my entire scene

Ответить
@qEmberrr
@qEmberrr - 12.02.2021 03:11

He says GUI as “gooey” only now I heard lolol XD

Ответить
@NoobMaster-we6ll
@NoobMaster-we6ll - 24.01.2021 05:52

I wanted to work on my own personal motion matching tool. Thnx Brackeys to getting me started

Ответить
@MDSky
@MDSky - 18.01.2021 04:24

thats great, but what about creating split sections, only have the mouse action effect one section, node graphs (so a how to make the animator window). there is so much in regards to making this but the documents and info on the internet is so wishy washy

Ответить
@samisyed899
@samisyed899 - 16.01.2021 07:39

How can we add a shortcut to COLORISE Button? i.e if we select cube in editor and press 'c' then Colorise() method should execute.

Ответить
@xxyxxyyyx
@xxyxxyyyx - 02.01.2021 20:54

can anybody tell me how I pass a variable from an EditorWindow script into a MonoBehaviour script like PlayerMovement?
I want to be able to press a button in the editor and then change the playerMovement from it, I just need a bool variable from the EditorWindow, but I can not access the script like a normal MonoBehaviour script ;(

Ответить
@excelion7109
@excelion7109 - 12.10.2020 13:00

Anyone else got issue where "Selection.gameObjects" colorizes all objects in the scene, not just selected ones?

Ответить
@ahmedthegreat3973
@ahmedthegreat3973 - 26.09.2020 14:12

Bye Brackeys

Ответить
@leeandroo
@leeandroo - 17.09.2020 20:53

Flawless tutorial.!

Ответить
@QFGEE
@QFGEE - 18.07.2020 03:23

You've truly opened up a new window of possibilities to me.

Ответить
@samuelallen6494
@samuelallen6494 - 01.07.2020 20:54

i have never heard anyone say GUI as gooey

Ответить
@gamersunite9026
@gamersunite9026 - 10.06.2020 14:51

editor G O O E Y layout

Ответить
@hyly_6927
@hyly_6927 - 03.06.2020 16:41

what if i dont do editor windows?

Ответить
@aaronfidelis3188
@aaronfidelis3188 - 30.05.2020 19:29

Interesting style of writing "Hello World!", though I hardly think that makes any difference

Ответить
@wolfeatsheep163
@wolfeatsheep163 - 04.05.2020 05:43

Darryl Wolfe
11 months ago
Ive tried this and the following code doesnt work:

renderer.sharedMaterial.color = color;


But this works:

renderer.material.color = color;

Ответить
@wolfeatsheep163
@wolfeatsheep163 - 03.05.2020 04:59

is this still relevant will it still work in ver 19

Ответить
@raphaelfelipe1404
@raphaelfelipe1404 - 15.04.2020 21:23

How I can make dynamic block conditions appear into windows like that? Its possible create conditions blocks and show then in inspector?

Ответить
@ishawarma
@ishawarma - 12.04.2020 20:40

You are amazing man Thx

Ответить
@electricowlevolved5873
@electricowlevolved5873 - 11.04.2020 02:50

I can't open the c# script

Ответить
@GuillemPoy
@GuillemPoy - 18.03.2020 14:41

Shouldn't you use object serialization to make unity know that you changed some properties in the scene?

Ответить
@lukass1604
@lukass1604 - 18.03.2020 12:45

HELP
How can I play a particle effect by pressing a button in my own editor window? I tried this by creating a reference to the Particle System and then simply calling the ParticleSystem.Play() function but it didnt work and also didnt throw any Errors.

Ответить
@numero7mojeangering
@numero7mojeangering - 29.02.2020 16:42

"Exzample Window"

Ответить
@minecraftermad
@minecraftermad - 20.02.2020 16:04

for me it reverts the changes made to the object when switching between editor and playmode
i've tried:

 Undo.RegisterCompleteObjectUndo(ObjectThatWasModified, "update Paths");
and in a custom editor gui i've tried to do:
serializedObject.ApplyModifiedProperties();

i've also tried calling the custom editor from the editor window with a handle with both of those on.

Ответить
@DrDavidIllig
@DrDavidIllig - 11.01.2020 02:37

somewhat off topic, but only some. Do you know who has a plugin that puts a simple word processor inside a Unity video game. So the player can type in messages on adjustable pads. Like a note pad system inside the game. Any hints?

Ответить
@ScifiSiShredaholic
@ScifiSiShredaholic - 20.11.2019 03:54

Wow, such a great tute!
Short, sharp and super useful.

Ответить
@fcblp1
@fcblp1 - 26.09.2019 14:45

Could you make a timeline for video editing with this?

Ответить
@thomasanderson1416
@thomasanderson1416 - 01.09.2019 18:26

Does this work with even the default non-editable material? won't this create material copies for each color?

Ответить
@thomasanderson1416
@thomasanderson1416 - 01.09.2019 18:25

GUILayout vs EditorGUILayout ehhhhh!
CLean up your API Unity!

Ответить
@vindiiictamusic2961
@vindiiictamusic2961 - 30.08.2019 09:46

I have a mac book but whenever I try to open the script editor it comes up asking for a software to run the code on but i dont understand how to get/open whatever the thing to write my script on is

Ответить
@aldomalaca
@aldomalaca - 09.07.2019 17:50

Unity Throws me this error "Ignoring menu Item because It is in no submenu". I can't figure out why this error is showing to me.

Ответить
@sakakuart7912
@sakakuart7912 - 07.07.2019 17:35

mr, how to make a like as projection camera> switches and changes in the variable inspector, how can I implement in my script

Ответить
@Thomason1005
@Thomason1005 - 30.06.2019 12:25

i am using this to Change the Location of objects.
but the custom window does not mark the property & Level as dirty,
therefore These changes will be lost if you do not make any other changes to the Level and close it.
also, no undo functionality on These changes.
how can this be fixed? / what do i Need to add for this to work?

Ответить
@thestartupguy3975
@thestartupguy3975 - 28.05.2019 02:58

When I tried the code, it changed every shapes color, not just the selected ones. Any help is very appreciated.

Ответить