Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Selection.instanceIDs

static var instanceIDs: int[];
static int[] instanceIDs;
static instanceIDs as int[]

Description

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

Only objects from the Scene or Hierarchy will be returned, not from the Project View. 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.