mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 06:56:45 +01:00
11 lines
341 B
Text
11 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;
|
||
|
}
|