Комментарии:
Я научился разрабатывать игры именно по твоим видео))
Спасибо, мужик! )
how to colorize 2d sprites that have no matier?
ОтветитьMany boys
ОтветитьGooie system
ОтветитьThank you. It's awesome.
Ответить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
ОтветитьCome back.
Ответить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));
Is there any way I can make this using Unity Bolt.
Ответитьbro i am so late here i am gonna cry ur my saviour almost lost hope in completing my game this saved me
ОтветитьNice video! I suggest that u should add a guide to update the color of selected object to the editor window.
Ответить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;
}
}
}
}
it deleted my entire scene
ОтветитьHe says GUI as “gooey” only now I heard lolol XD
ОтветитьI wanted to work on my own personal motion matching tool. Thnx Brackeys to getting me started
Ответить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
Ответить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.
Ответить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 ;(
Anyone else got issue where "Selection.gameObjects" colorizes all objects in the scene, not just selected ones?
ОтветитьBye Brackeys
ОтветитьFlawless tutorial.!
ОтветитьYou've truly opened up a new window of possibilities to me.
Ответитьi have never heard anyone say GUI as gooey
Ответитьeditor G O O E Y layout
Ответитьwhat if i dont do editor windows?
ОтветитьInteresting style of writing "Hello World!", though I hardly think that makes any difference
Ответить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;
is this still relevant will it still work in ver 19
ОтветитьHow I can make dynamic block conditions appear into windows like that? Its possible create conditions blocks and show then in inspector?
ОтветитьYou are amazing man Thx
ОтветитьI can't open the c# script
ОтветитьShouldn't you use object serialization to make unity know that you changed some properties in the scene?
Ответить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.
"Exzample Window"
Ответить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.
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?
ОтветитьWow, such a great tute!
Short, sharp and super useful.
Could you make a timeline for video editing with this?
ОтветитьDoes this work with even the default non-editable material? won't this create material copies for each color?
ОтветитьGUILayout vs EditorGUILayout ehhhhh!
CLean up your API Unity!
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
Ответить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.
Ответитьmr, how to make a like as projection camera> switches and changes in the variable inspector, how can I implement in my script
Ответить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?
When I tried the code, it changed every shapes color, not just the selected ones. Any help is very appreciated.
Ответить