Slate FSlateBrush cannot have an exposed pointer to this type

#Hard Data

Cant you just store the hard data itself?

UPROPERTY(specifiers here)
FSlateBrush  MyBPBrush;

Now you get two things

  1. stability
  2. You can edit the Slate Brush in the Editor using Defaults Tab.

:slight_smile:

#The & Operator

To use this with Slate, send slate the address of your hard data.

MySlateFunctionThatWantsBrushPtr( &MyBPBrush );

When you see slate functions wanting a FSlateBrush*, you send it the above, using the complimentary & symbol

:slight_smile:

Rama

1 Like