- Home /
script that detect assets builded
Hi
I would like to create a script checking if a specific list of assets get shipped into the build when I click on "build". The reason for that is : -I use some assets bundles, I still want to have the prefabs matching these bundles into my project, just for clarity of information purposes. -I want to get a warnning or even the building not compiling if any these assets that should be only in the bundles gets shipped into the build (because if they do, no more reasons to use bundles) -I don t want to read the build logs every times I build.
I have no idea in which direction I should go. -Do I have access to an event in script editor like "OnBuild" ? -Is there a boolean somewhere saying "asset.getShipper" ?
Thank you
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613173200im_/https://answers.unity.com/themes/thub/images/avi.jpg)