x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Drawing materials in slate

I want my Sbutton to contain a dynamicmaterialinstance instead of a a image. How do I draw a material in slate?

Product Version: Not Selected
Tags:
more ▼

asked Jul 28 '14 at 05:45 PM in C++ Programming

avatar image

envenger
428 77 118 148

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Materials are usable on any brush type and there is a new brush type (FSlateMaterialBrush) for dynamic materials.

So create a SlateButtonWidgetStyle asset in content browser and just assign Material instead of texture to Normal/Hover/Pressed variables. If you dont know how to manage Style styling, take a look into Shooter example.

more ▼

answered Jul 28 '14 at 08:50 PM

avatar image

szyszek
610 16 12 36

avatar image envenger Jul 29 '14 at 01:50 PM

I couldn't use materials when I am creating slate style widget in the editor. I allows me only to add 2dtextures. I am using 4.2 I have not updated the version yet. Do I need to create a slate style manually in c++?

avatar image envenger Jul 29 '14 at 05:29 PM

Why is slate so confusing -_-

I went through the whole vehicle game code and I couldn't find anything regarding using materials. Even though I am new to slate, I couldn't understand really any UI code.

avatar image Devero Jul 29 '14 at 05:46 PM

In a recent twitch stream, the devs said they have materials working for UMG. Now we just have to wait for UMG to come around. I'm anxiously awaiting this feature also. :) Please something by 4.4 .....

avatar image envenger Jul 29 '14 at 06:14 PM

Yes I too would really like to use UMG. For making widgets and data binding c++ is fine. But when it comes to styles and brushes, i cant really understand any code of it.

And I also want to know how to use materials as images in slate buttons and change them dynamically.

avatar image szyszek Jul 30 '14 at 08:39 AM

Using materials as a brush is available in version 4.3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question