So I've set up a scene with a lot of swapping of things like clothing and hair assets on a set person/look. I've also created a number of individual presets for some of the hair assets, in particular (color, look, physics), that when I set up a trigger to 'LoadPresetWithPath' end up failing.
The hair assets that fail like this are ones that have yet to be 'loaded' into the scene. So they when the trigger fires to activate the hair, it pulls from the store. I then setup a LoadingDelay trigger to apply the preset to the hair I just activated on the person. The problem is that when I freshly load the scene, the LoadingDelay triggers that apply the preset completely blank out the 'Receiver' field. The 'Receiver' field being the newly activated hair asset.
This makes sense, because the reference to the instanced asset does not exist on the person at scene load. I'm assuming that onLoad the triggers go through all of the references inside them to make sure they're valid, and apparently blank out the ones that aren't.
Is there a way around this? Can I pre-cache the hair somehow? Or is there some way to force a preset to load, in this scene, when X hair asset is loaded?
I was able to work around this problem with clothing by using the clothing triggers plugin, such that whenever X clothing item is loaded if fires any number of triggers, in my case loading preset on itself. Does anything like this exist for hair styles?
Thanks
The hair assets that fail like this are ones that have yet to be 'loaded' into the scene. So they when the trigger fires to activate the hair, it pulls from the store. I then setup a LoadingDelay trigger to apply the preset to the hair I just activated on the person. The problem is that when I freshly load the scene, the LoadingDelay triggers that apply the preset completely blank out the 'Receiver' field. The 'Receiver' field being the newly activated hair asset.
This makes sense, because the reference to the instanced asset does not exist on the person at scene load. I'm assuming that onLoad the triggers go through all of the references inside them to make sure they're valid, and apparently blank out the ones that aren't.
Is there a way around this? Can I pre-cache the hair somehow? Or is there some way to force a preset to load, in this scene, when X hair asset is loaded?
I was able to work around this problem with clothing by using the clothing triggers plugin, such that whenever X clothing item is loaded if fires any number of triggers, in my case loading preset on itself. Does anything like this exist for hair styles?
Thanks
Last edited: