Selection.instanceIDs

public static int[] instanceIDs;

Description

The actual unfiltered selection from the Scene returned as instance ids instead of objects.

All objects will be returned, including assets in projects. You can also assign objects to the selection.

The instance ID of an object is always guaranteed to be unique.

See Also: Selection.objects, Object.GetInstanceID.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答