IUxrPrecacheable Interface

The IUxrPrecacheable interface is used in components that need to create instances at runtime and want a way to precache them so that there aren’t any hiccups on instantiation. The UxrManager will look for IUxrPrecacheable components when the scene is loaded and will instantiate and render the objects specified by PrecachedInstances a certain amount of frames while the screen is still black. This will make sure their resources (meshes, textures) are cached in order to minimize instantiation delays.

Namespace: UltimateXR.Core.Caching
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public interface IUxrPrecacheable


The IUxrPrecacheable type exposes the following members.

Properties

NameDescription
Public propertyPrecachedInstances Gets the GameObjects, usually prefabs, that will be precached when the scene is loaded.

See Also

Reference

UltimateXR.Core.Caching Namespace