Class VelvetRuntimeAssets
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Holds the package assets a player needs and cannot look up by name.
[Preserve]
public sealed class VelvetRuntimeAssets : ScriptableObject
- Inheritance
-
objectObjectScriptableObjectVelvetRuntimeAssets
Remarks
A build includes an asset because something in it is referenced; a player then needs a way back to
that reference, and PlayerSettings.preloadedAssets loads an object without giving any way to
find it. So the preloaded object is this one, and it publishes itself as it loads.
The alternative was a Resources folder, which is a lookup by name and needs no build step at
all. Documentation~/player-builds.md holds what each one cost.
Preserve rather than leaving it to the linker: no managed code calls the enable message, and
if it is stripped the sheet is unreachable for the whole run.