Skip to main content

IsValidObject

คำอธิบาย

Checks if an object with the ID provided exists.

NameDescription
objectidThe ID of the object to check the existence of.

ส่งคืน

1: The object exists.

0: The object does not exist.

ตัวอย่าง

if (IsValidObject(objectid))
{
DestroyObject(objectid);
}

บันทึก

warning

This is to check if an object exists, not if a model is valid.

ฟังก์ชั่นที่เกี่ยวข้องกัน