Icon missing quesition

   1321   0   0
User Avatar
Member
2 posts
Joined: Oct. 2018
Offline
when I put plugins in “Unreal/Engine/plugins/Runtime/HoudiniEngine” the icon work well,
but put plugins in “MyProject/plugins/Runtime/HoudiniEngine” the icon is white block ,it is missing.

I try to debug the code


const TSharedRef< IPlugin > & Plugin = *PluginIt;
if ( Plugin->GetName() == TEXT( “HoudiniEngine” ) )
{
FString Icon128FilePath = Plugin->GetBaseDir() / TEXT( “Resources/Icon128.png” );

if ( FPlatformFileManager::Get().GetPlatformFile().FileExists( *Icon128FilePath ) )
{
const FName BrushName( *Icon128FilePath );
const FIntPoint Size = FSlateApplication::Get().GetRenderer()->GenerateDynamicImageResource( BrushName );

if ( Size.X > 0 && Size.Y > 0 )
{
static const int32 ProgressIconSize = 32;
HoudiniLogoBrush = MakeShareable( new FSlateDynamicImageBrush(
BrushName, FVector2D( ProgressIconSize, ProgressIconSize ) ) );
}
}

break;
}


both of them assign HoudiniLogoBrush the correct value.

I wonder why put plugins in my project have no houdini icon?

Tt is not a big question, but It really worries me
  • Quick Links