put a doc comment so i remember what this is for

This commit is contained in:
JohnCorby 2022-07-09 15:52:29 -07:00
parent f283a8b2c8
commit 48d41fb798

View File

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