12 lines
284 B
JavaScript
12 lines
284 B
JavaScript
|
|
@CustomEditor(SurfaceScript)
|
|
class SurfaceEditorScript extends Editor
|
|
{
|
|
function OnSceneGUI()
|
|
{
|
|
if(Event.current.control) Selection.activeGameObject = target.transform.parent.parent.parent.gameObject;
|
|
else Selection.activeGameObject = target.transform.parent.gameObject;
|
|
}
|
|
}
|
|
|