Add ultimate xr

This commit is contained in:
2024-08-06 21:58:35 +02:00
parent 864033bf10
commit 7165bacd9d
3952 changed files with 2162037 additions and 35 deletions

View File

@@ -0,0 +1,30 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IUxrPrecacheable.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using System.Collections.Generic;
using UnityEngine;
namespace UltimateXR.Core.Caching
{
/// <summary>
/// The <see cref="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 <see cref="UxrManager" /> will look for <see cref="IUxrPrecacheable" /> components when the scene is loaded and
/// will instantiate and render the objects specified by <see cref="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.
/// </summary>
public interface IUxrPrecacheable
{
#region Public Types & Data
/// <summary>
/// Gets the GameObjects, usually prefabs, that will be precached when the scene is loaded.
/// </summary>
IEnumerable<GameObject> PrecachedInstances { get; }
#endregion
}
}

View File

@@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 454ce8b03452c5b46bc1b817c1e84ed0
timeCreated: 1537182951
licenseType: Pro
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: