Creates an array of GlobalObjectIds based on an array of Objects or InstanceIDs.
此调用较慢,应避免使用或谨慎使用。两个数组的大小必须相同。