This commit is contained in:
Nick 2022-07-09 19:05:12 -04:00
commit c05071b746

View File

@ -3,6 +3,9 @@ using System.Linq;
using UnityEngine;
namespace NewHorizons.Handlers
{
/// <summary>
/// handles streaming meshes so they stay loaded
/// </summary>
public static class OWAssetHandler
{
private static Dictionary<Material, string> _materialCache;
@ -45,7 +48,7 @@ namespace NewHorizons.Handlers
{
assetBundles.Add(assetBundle);
}
if (streamingHandle is StreamingRenderMeshHandle || streamingHandle is StreamingSkinnedMeshHandle)
if (streamingHandle is StreamingRenderMeshHandle or StreamingSkinnedMeshHandle)
{
var materials = streamingHandle.GetComponent<Renderer>().sharedMaterials;