Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseThe 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.