sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.3k stars 368 forks source link

Asset Paths are expecting the /Plugins/Runtime/HoudiniEngine Folder Structure after moving Houdini #281

Closed Edstub207 closed 5 months ago

Edstub207 commented 5 months ago

In HoudiniEngineStyle.cpp the following points towards the assets needed in Slate. However, it's not actually a valid mapping because it expects /Plugins/Runtime/HoudiniEngine, whereas it should be looking for the plugin location itself. This happens after moving Houdini to a different folder location (Where the old folders haven't been cleaned up)

`#define IMAGE_BRUSH( RelativePath, ... ) FSlateImageBrush( StyleSet->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ )

define BOX_BRUSH( RelativePath, ... ) FSlateBoxBrush( StyleSet->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ )

define BORDER_BRUSH( RelativePath, ... ) FSlateBorderBrush( StyleSet->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ )

define TTF_FONT( RelativePath, ... ) FSlateFontInfo( StyleSet->RootToContentDir( RelativePath, TEXT(".ttf") ), __VA_ARGS__ )

define TTF_CORE_FONT( RelativePath, ... ) FSlateFontInfo( StyleSet->RootToCoreContentDir( RelativePath, TEXT(".ttf") ), __VA_ARGS__ )

define OTF_FONT( RelativePath, ... ) FSlateFontInfo( StyleSet->RootToContentDir( RelativePath, TEXT(".otf") ), __VA_ARGS__ )

define OTF_CORE_FONT( RelativePath, ... ) FSlateFontInfo( StyleSet->RootToCoreContentDir( RelativePath, TEXT(".otf") ), __VA_ARGS__ )

`

Edstub207 commented 5 months ago

Commit is https://github.com/sideeffects/HoudiniEngineForUnreal/commit/027ce122526358cda737f295f643cc5d99a6826d & https://github.com/sideeffects/HoudiniEngineForUnreal/commit/e88dccfd50326fce13f4e166036ccd49bf91dc0f