mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
put a doc comment so i remember what this is for
This commit is contained in:
parent
f283a8b2c8
commit
48d41fb798
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user