Show / Hide Table of Contents

Class AssetUtils

Util functions related to loading assets at runtime.
Inheritance
object
AssetUtils
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public static class AssetUtils

Fields

Name Description
AssetBundlePathSeparator Path separator for AssetBundles

Methods

Name Description
LoadAssetBundle(string) Loads an asset bundle at runtime.
LoadAssetBundleFromResources(string) Load an assembly-embedded AssetBundle. The calling assembly is automatically detected.
LoadAssetBundleFromResources(string, Assembly) Load an assembly-embedded AssetBundle. Use this if the automatic detection of the assembly fails.
LoadMesh(string) Loads a mesh from a .obj file at runtime.
LoadSprite(string) Loads a Sprite from a file path or an asset bundle (separated by AssetBundlePathSeparator)
LoadSpriteFromFile(string) Loads a Sprite from file at runtime.
LoadSpriteFromFile(string, Vector2) Loads a Sprite from file at runtime.
LoadText(string) Loads the contents of a file as a char string
LoadTextFromResources(string) Load an assembly-embedded file as a string. The calling assembly is automatically detected.
LoadTextFromResources(string, Assembly) Load an assembly-embedded file as a string. Use this if the automatic detection of the assembly fails.
LoadTexture(string, bool) Loads a Texture2D from file at runtime.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾