Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

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.