文档

Unity Engine

Unity Engine

overridesDefaultSelection

Whether the tool context overrides the scene selection.
阅读时间1 分钟最后更新于 1 个月前

Definition

public virtual bool overridesDefaultSelection { get; }

Remarks

Set this property to true to allow the current EditorToolContext to override the regular selection in the scene. This prevents automatically exiting the context when you click on an empty area of the Scene view or on another GameObject. The default value is false.