ITexture/IsError

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added IsErrorTexture link)
 
Line 2: Line 2:
 
|Description=Returns whenever the texture is valid. (i.e. was loaded successfully or not)
 
|Description=Returns whenever the texture is valid. (i.e. was loaded successfully or not)
  
{{Note|The "error" texture is a valid texture, and therefore this function will return false when used on it.}}
+
{{Note|The "error" texture is a valid texture, and therefore this function will return false when used on it. Use {{ClassFunction|ITexture|IsErrorTexture}}, instead.}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 06:26, 19 September 2019

 ITexture:IsError( )

Description

Returns whenever the texture is valid. (i.e. was loaded successfully or not)

NOTE

The "error" texture is a valid texture, and therefore this function will return false when used on it. Use ITexture:IsErrorTexture, instead.

Returns

boolean

Whether the texture was loaded successfully or not.
Personal tools
Navigation