mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-16 07:23:52 +01:00
11 lines
341 B
Plaintext
11 lines
341 B
Plaintext
|
/// @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;
|
||
|
}
|