Garry's Mod Wiki

Garry's Mod Wiki

  DImage:SetOnViewMaterial( string mat, string backupMat )

Description

Similar to DImage:SetImage, but will only do the expensive part of actually loading the textures/material if the material is about to be rendered/viewed.

Useful for cases like DIconBrowser, where there are hundreds of small icons in 1 panel in a list that do not need all to be loaded at the same time.

Arguments

1 string mat
2 string backupMat

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...