functions Static Methods 13

Create (width, height, format)
Texture2DBuilder
Begins creation of a custom texture. Finish by calling Sandbox.Texture2DBuilder.Finish.
CreateArray (width, height, count, format)
TextureArrayBuilder
Begins creation of a custom texture array. Finish by calling Sandbox.TextureArrayBuilder.Finish.
CreateCube (width, height, format)
TextureCubeBuilder
Begins creation of a custom cube texture. (A texture with 6 sides) Finish by calling Sandbox.TextureCubeBuilder.Finish.
CreateCustom ()
TextureBuilder
Begins creation of a custom texture. Finish by calling Sandbox.TextureBuilder.Create(System.String,System.Boolean,System.ReadOnlySpan{System.Byte},System.Int32).
CreateFromSvgSource (svgContents, width, height, color)
Texture
CreateRenderTarget ()
TextureBuilder
Begins creation of a render target. Finish by calling Sandbox.TextureBuilder.Create(System.String,System.Boolean,System.ReadOnlySpan{System.Byte},System.Int32).
CreateVolume (width, height, depth, format)
Texture3DBuilder
Begins creation of a custom 3D texture. Finish by calling Sandbox.Texture3DBuilder.Finish.
Find (filepath)
Texture
Try to get an already loaded texture.
Load (filesystem, filepath, warnOnMissing)
obsoleteTexture
Try to load a texture from given filesystem, by filename.
LoadAsync (filesystem, filepath, warnOnMissing)
obsoleteTask`1
Load a texture asynchronously. Will return when the texture is loaded and valid. This is useful when loading textures from the web.
LoadAvatar (steamid, size)
Texture
Load avatar image of a Steam user (with a certain size if supplied).
LoadFromFileSystem (filepath, filesystem, warnOnMissing)
Texture
Try to load a texture from given filesystem, by filename.
LoadFromFileSystemAsync (filepath, filesystem, warnOnMissing)
Task`1
Load a texture asynchronously. Will return when the texture is loaded and valid. This is useful when loading textures from the web, or without any big loading hitches.

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.