mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
10 lines
341 B
Text
10 lines
341 B
Text
/// @description Returns the depth of the specified object.
|
|
/// @param {Real} obj The index of the object to check
|
|
/// @return {Real} depth of the object
|
|
function object_get_depth(objID) {
|
|
var ret = 0;
|
|
if (objID >= 0) && (objID < array_length(global.__objectID2Depth)) {
|
|
ret = global.__objectID2Depth[objID];
|
|
} // end if
|
|
return ret;
|
|
}
|