Hello ![]()
The CDO of the UVolumetricCloudComponent is referencing the material, which is then include in the packaging automatically by the cooker, even if we don’t use any of theses components
[Image Removed]
[Attachment Removed]
Hello ![]()
The CDO of the UVolumetricCloudComponent is referencing the material, which is then include in the packaging automatically by the cooker, even if we don’t use any of theses components
[Image Removed]
[Attachment Removed]
Hello,
We changed it to a soft reference to not load it. So it should only be in the package?
And thank you for the change proposal! If we do not want that material referenced in the package, would not it be better to no added the dependency for CDO when cooking using if (!HasAnyFlags(RF_ClassDefaultObject) && Material.IsValid())? Inside OnCookEvent function I mean?
[Attachment Removed]
Oh yeah i didn’t see that part indeed, seems more a fitting place to do that, i reapplied a fix from the 5.5 which was loading the object directly inside the constructor, which should indeed not get take by the cooker in this state, that was the cookevent doing that work, thanks for that, i will update my fix on my side ![]()
and yes it is totally related to packaging only ![]()
[Attachment Removed]
Please confirm when you test if it works correctly on your side and I’ll apply it from our side as well.
Not sure if RT_ArchetypeObject is needed?
[Attachment Removed]
Doesn’t look like it worked, i’m still getting the material in my packaging, for the flags, from my understanding when i checked i think we need both, but i don’t fully remember the differences so i might be wrong, for the record, i modified like this
[Image Removed]
[Attachment Removed]
maybe the simple fact of it beeing a reference of the CDO is enough for the cooker to integrate it
[Attachment Removed]
for the record i found this used elsewhere
[Image Removed]and the defaults of IsTemplate are indeed using theses two flags
[Attachment Removed]
mhh, is the register function called by the cooker ? i’m seeing this
[Image Removed]
[Attachment Removed]
OnRegister: should be called at runtime to actually load the data pointed to by the soft reference.
OnCookEvent should be the cook event time to register dependencies.
The code you report using !IsTemplate seems to be at a higher level from an actor. If the CDO is copied for the creation of an instance, then we want the default map for the default actor to have something on it in editor. I guess I’ll have to check but that is not at the top of my list.
[Attachment Removed]
Thanks for the heads up, but yeah do not waste time on this, even after adding the IsTemplate to the three location that material somehow still ends up in my packaging, i have no clue how yet
[Attachment Removed]
Thanks, I added a note to look at that in details when I can but otherwise right now I would not know more.
How do you check if a material is in you package?
[Attachment Removed]