cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
195 stars 32 forks source link

Feature/unity resource cache #58

Closed cs-util closed 3 years ago

cs-util commented 3 years ago

Introduced a new helper class I called ResourceCache which allows the developer to link to Resources that will be required by the ResourcesV2.Load() logic

This allows to use ResourcesV2.Load on Resources that are not placed in a resource folder but instead are linked in such a ResourceCache so that the Cache can be placed e.g. in the scene and this way define which Resources will be required to be included in the build if the scene is part of the build

Tested the new generic ResourceCache in the Ui13 example scene which before had a Resource folder and now does not. This means that an application which has the Ui13 example assets in its project wont automatically include these assets in a build that does not include the Ui13 scene


This change is Reviewable