bakjos / WebCameraFeed

Web Camera plugin for Unreal Engine
63 stars 29 forks source link

FInvalidatableBrushAttribute undefined. #6

Closed glenwrhodes closed 4 years ago

glenwrhodes commented 4 years ago

Hi there. Trying to give this a try (4.23), but when I build I'm getting an error in VS in SWebCameraImage.cpp, line 18:

    Image = FInvalidatableBrushAttribute (&Brush);

VS is saying that FInvalidatableBrushAttribute is an undefined identifier.

bakjos commented 4 years ago

@glenwrhodes What visual studio version are you using? For me is working with UE 4.24 and VS 2019. You can try including#include "Styling/SlateTypes.h"

glenwrhodes commented 4 years ago

Ahh, this is 4.23. Looks like FInvalidatableBrushAttribute was added in 4.24. I've commented out that line and it builds now, but of course the SWebCameraImage has no image. Do you know what the pre-4.24 code would be to set the Image without using FInvalidatableBrushAttribute ?

bakjos commented 4 years ago

@glenwrhodes I think you can assign directly the brush to the image then Image = &Brush;