object legitimacy||doc135429

September 20, 2022

Format

 Object:isValid() 
  • The class to which the function belongs:Object

Description

Determine whether it is a valid object.


Precautions

  • The object should first determine whether the object itself exists before calling the isValid function

Value Returned

type Description
boolean is it effective


Code Samples

if Object and Object:isValid() then
    print("todo")
end