class in UnityEditor.SearchService
Implements interfaces:ISearchContext
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.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseA search context implementation for ObjectSelector search engines. All methods that are called on an ObjectSelector search engine, and expect a ISearchContext, receive an object of this type.
allowedInstanceIds | IEnumerable of integers that contains the instanceIds of objects that the search can include in its results. |
currentObject | Identifies the currently selected object. |
editedObjects | When the object selector is opened from an Inspector, this property indicates which objects are currently being edited. |
engineScope | An enum that identifies the scope of the current search. This property is automatically set to SearchService.ObjectSelector.EngineScope. |
guid | A unique identifier for this search context. |
requiredTypeNames | An IEnumerable of strings that contains the type name constraints for this search. |
requiredTypes | An IEnumerable of types that contains the type constraints for this search. |
visibleObjects | Indicates which categories of objects are visible in the window. For example, GameObjects, Assets, or both. |