Search Unity

Capture "Frame Selected" (F key) event in Custom Editor

Discussion in 'Immediate Mode GUI (IMGUI)' started by CCDev, Mar 19, 2015.

  1. CCDev

    CCDev

    Joined:
    Feb 12, 2015
    Posts:
    2
    Hi,

    is there any way to capture or customize the "Frame Selected" event (when the user presses F) in a Custom Editor?

    My problem is this: I have created a component that has multiple "sub objects" with their own Handles (translation gizmos), but the "Frame Selected" command only focuses on the game object's transform, while the gizmos of the subobject might actually be far away. I want to have a way to frame these subobjects and therefore probably need to customize the "Frame Selected" command in scripting somehow.

    Any help appreciated!