• Articles
  • Api Documentation
Show / Hide Table of Contents
  • DDSLoader
    • DDSImage
    • DDSImage.DDSHeader
    • DDSImage.DDSPixelFormat
    • DDSImage.HeaderFlags
    • DDSImage.PixelFormatFlags
    • DDSUnityExtensions
    • FourCC
  • LLBML
    • BallApi
    • CharacterApi
    • GraphicUtils
    • InputApi
    • LLBMLPlugin
    • LoadingInfo
    • LoadingScreen
    • PluginInfos
    • ProgressApi
    • ScreenApi
    • StateApi
  • LLBML.Audio
    • AudioAsset
    • AudioCache
    • AudioInfo
    • AudioUtils
  • LLBML.External
    • IntHelpers
    • Murmur3
  • LLBML.GameEvents
    • GameEvents
    • GameStateEvents
    • LobbyEventArgs
    • LobbyEvents
    • LobbyReadyArgs
    • MenuEvents
    • OnLobbyEnteredHandler
    • OnLobbyReadyHandler
    • OnMainMenuEnteredArgs
    • OnMainMenuEnteredHandler
    • OnMainMenuFirstEnteredHandler
    • OnPlayerJoinArgs
    • OnPlayerJoinHandler
    • OnStateChangeArgs
    • OnStateChangeHandler
    • OnUnlinkFromPlayerArgs
    • OnUnlinkFromPlayerHandler
    • OnUserCharacterPickArgs
    • OnUserCharacterPickHandler
    • OnUserSkinClickArgs
    • OnUserSkinClickHandler
  • LLBML.Graphic
    • Draw
    • Draw.Alignment
  • LLBML.Math
    • BinaryUtils
    • Boundsf
    • Floatf
    • Vector2f
    • Vector2i
  • LLBML.Messages
    • CustomMessage
    • MessageActions
    • MessageApi
    • MessageApi.OnReceiveMessageHandler
    • MessageEventArgs
  • LLBML.Networking
    • Channel
    • EnvelopeApi
    • EnvelopeApi.OnReceiveEnvelopeHandler
    • EnvelopeEventArgs
    • EP2PSend
    • EP2PSend.Enum
    • EP2PSend.Enum_Mapping
    • NetworkApi
    • Transaction
    • TransactionCode
    • TransactionState
  • LLBML.Players
    • Player
    • PlayerStatus
    • PlayerStatus.Enum
    • PlayerStatus.Enum_Mappings
    • Team
    • Team.Enum
    • Team.Enum_Mappings
  • LLBML.Settings
    • GameSettings
  • LLBML.States
    • GameState
    • GameState.Enum
    • GameState.Enum_Mapping
    • GameStates
    • GameStatesGameUtils
    • GameStatesLobbyUtils
    • PlayerLobbyState
  • LLBML.Texture
    • TextureUtils
  • LLBML.UI
    • Dialogs
  • LLBML.Utils
    • ArrayExtension
    • BepInRef
    • ControlledRandom
    • DebugUtils
    • EnumWrapper<T>
    • GenericCache<K, T>
    • GenericUtils
    • Hash<T>
    • IByteable
    • ModDependenciesUtils
    • ModdingFolder
    • PatchUtils
    • StringUtils

Class TextureUtils

Inheritance
System.Object
TextureUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LLBML.Texture
Assembly: LLBModdingLib.dll
Syntax
public static class TextureUtils

Methods

DefaultTexture(Int32, Int32, TextureFormat)

Returns a default texture with optional size.

Declaration
public static Texture2D DefaultTexture(int width = 512, int height = 512, TextureFormat format = TextureFormat.RGBA32)
Parameters
Type Name Description
System.Int32 width

New texture's width.

System.Int32 height

New texture's height.

UnityEngine.TextureFormat format

New texture's format.

Returns
Type Description
UnityEngine.Texture2D

The texture.

LoadDDS(FileInfo)

Loads a dds from a file and returns it.

Declaration
public static Texture2D LoadDDS(FileInfo file)
Parameters
Type Name Description
System.IO.FileInfo file

The dds file to load.

Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

LoadDDS(String)

Loads a dds from a file and returns it.

Declaration
public static Texture2D LoadDDS(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

LoadPNG(FileInfo)

Loads a png from a file and returns it.

Declaration
public static Texture2D LoadPNG(FileInfo file)
Parameters
Type Name Description
System.IO.FileInfo file

The png file to load.

Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

LoadPNG(String)

Loads a png from a file and returns it.

Declaration
public static Texture2D LoadPNG(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

LoadTexture(FileInfo)

Loads a file and returns a texture from it.

Declaration
public static Texture2D LoadTexture(FileInfo file)
Parameters
Type Name Description
System.IO.FileInfo file

The file to load.

Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

LoadTexture(String)

Loads a file and returns a texture from it.

Declaration
public static Texture2D LoadTexture(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
UnityEngine.Texture2D

The loaded texture.

Remarks

Loads the asset into memory, you should only load it once. Look into if you need a class to manage that.

In This Article
Back to top Generated by DocFX