ITexture/IsError

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=IsError |Parent=ITexture |Description=Returns whenever the texture is invalid or not. |Realm=Shared |IsClass=Yes }} {{Ret |type=boolean |desc= isError }}")
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=IsError
+
|Description=Returns whenever the texture is valid. (i.e. was loaded successfully or not)
|Parent=ITexture
+
 
|Description=Returns whenever the texture is invalid or not.
+
{{Note|The "error" texture is a valid texture, and therefore this function will return false when used on it.}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 8: Line 8:
 
{{Ret
 
{{Ret
 
|type=boolean
 
|type=boolean
|desc= isError
+
|desc=Whether the texture was loaded successfully or not.
 
}}
 
}}

Revision as of 15:40, 18 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.

Returns

boolean

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