When running my project in simulate and standalone, the instanced static mesh actors are shown correctly and there is no issue. However, when the project is packaged, the instanced static mesh actors are no longer seen. I can’t seem to find any way to fix this or make sense of it. I am using the following code to add instances to the ISM:
The material I am using, uses instance custom data to control the RGB values, show here:
I have noticed that if I add an instance to the ISM blueprint that uses the class above as its parent, the pre-added instance will be rendered in the packaged game. Screenshots below:
1 Instance already set up in the blueprint before run-time.
Project ran in simulator/standalone, works as expected, for testing, you can see the blueprint instance (instance 0).
Lastly, here is the view in the packaged game, only instance 0 is visible.
UE4: Version 4.25.4.