PositionHandle rotation from transform settings

I want my PositionHandle to be influenced by Global and Local transform settings in the Editor just like built-in Unity one:

4695284--442988--upload_2019-6-28_20-6-51.png

4695284--442997--upload_2019-6-28_20-9-54.png

How do I do that?

4695284--442994--upload_2019-6-28_20-9-30.png

Maybe a bit late to the party but for anyone in the future.
As I understand you want your Editor script’s Handle.PositionHandle orientation based on the scene settings.

You could use this snippet:

Quaternion handleRotation = Tools.pivotRotation == PivotRotation.Global
                ? Quaternion.identity
                : targetRotation;
Vector3 nodeTargetPosition = Handles.PositionHandle(handlePosition, handleRotation);
1 Like