I want to use the editor script control this option.
But I can’t find any articles about this topic.
[126991-屏幕快照-2018-11-01-上午12821.png|126991]
I want to use the editor script control this option.
But I can’t find any articles about this topic.
[126991-屏幕快照-2018-11-01-上午12821.png|126991]
Solved
private static void SelectionWire(bool isEnable)
{
var asm = Assembly.GetAssembly(typeof(Editor));
var type = asm.GetType("UnityEditor.AnnotationUtility");
if (type == null)
{
return;
}
var setSelectionWire = type.GetProperty("showSelectionWire", BindingFlags.Static | BindingFlags.NonPublic);
if (setSelectionWire == null)
return;
setSelectionWire.SetValue(null, isEnable, null);
}