I’ve spent hours reading the documentation, but can’t figure out how to do any of the following:
After changes are made that update values in the Properties window (in my case, a Label field), the Properties window is not repainted automatically. I have to click on another actor, then my actor with the custom editor, to get the Properties window to repaint/refresh. I’ve seen the same behaviour in Unity which is solved by calling a Repaint() function. Flax’s GenericEditor class has a Refresh() function that looks like it should do the same thing, but calling Refresh() doesn’t have any effect. What’s the proper way to get the Properties windows to repaint?
Each use of “var button = layout.Button( “SomeLabel” );” creates a button on a new row. How can I create a group of buttons on the same row (in the Properties windows, for a customer editor)?
Is it possible to create a button labeled with an image instead of text (in the Properties windows, for a customer editor)?
That worked! I got all my questions answered, learned a ton about how Flax works under the hood, and taught myself how to set up a sprite atlas for my button’s sprites.
Thank you very much for the fast reply and especially for the example script.
I want to change the texture of a button, but the method defined in the background of the visual script accepts only IBRUSH and this type does not have. Could C# or VisualScript code be done to do this? If you knew, please answer.