Unreal Troubleshooting - jgoffeney/Cesium4Unreal GitHub Wiki

Back

C++

FindComponent

If you are trying to find a child component of an object it cannot be done within the object's constructor. Instead put it in BeginPlay() or PostInitializeComponents().

Adding Header Libraries and Angle Brackets

Unreal does not like it when you drop a header library into your source directory if it has angled brackets. So separate them into their own directory and tell the Build file how to find them.

  • Create a directory ThirdParty/include within the Source directory. Within the _include" directory copy your libraries as directories and/or files.
  • Within your Source directory edit your project's *.Build.cs file and add the following.
    • Note that it assumes the ThirdParty directory is a level above your *.Build.cs file.
    • To use Path you will need to add using System.IO;.
PublicIncludePaths.AddRange(
    new string[] {
        Path.Combine(ModuleDirectory, "../ThirdParty/include")
    }
);

Editor

My Actor classes are not in my level when loaded in Unreal Editor

This apparently as of 8/18/2022 is an error with the Live Coding system. Go to the compile options menu and select disable live coding.

Materials

[SM5] Error x4510: maximum ps_5_0 sampler register index (16) exceeded

This is a legacy error for the max number of texture samplers allowed which is actually 14 due to 2 being used by default. The solution:

  • Select each texture sampler node.
  • Under Material Expression Texture Sample->Sampler Source change from From texture asset to one of the shared options.
  • Repeat for to free up as many as you need.

If node fails to compile for branch inputs

I encountered this when trying to pass Material nodes as the A < B or A > B inputs of the If node. I do not know the cause and instead had to make multiple If nodes to do the same value check for each parameter like BaseColor and Normals.

⚠️ **GitHub.com Fallback** ⚠️