objectIDs | 将计算构建使用情况的对象。 |
dependentObjectIDs | 对正在计算的对象进行引用的对象。 |
globalUsage | 由构建使用的光照信息。 |
usageSet | 此 BuildUsageTagSet 将存储计算的使用信息。 |
usageCache | 可选的缓存对象,用于在多次调用此 API 时提高性能。 |
计算一组对象的构建使用情况。
仅限内部使用。请参阅有关 ContentBuildInterface 的注意事项。
要计算任何给定对象在构建中的使用情况,我们需要两部分信息。首先,我们需要知道该对象的依赖项,或者换句话说,是什么引用了该对象。例如,对于着色器,我们需要知道引用该着色器的材质列表。其次,我们需要可以使用对象的场景的整体光照信息。通过使用这两部分的信息,我们可以计算对象的正确使用信息,然后将该信息存储在 BuildUsageTagSet 中。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.