Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DefaultMidpointHandleSizeFunction(Vector3)

A Handles.SizeFunction that returns a fixed screen-space size.
Read time 1 minuteLast updated a month ago

Definition

public static float DefaultMidpointHandleSizeFunction(Vector3 position)

Parameters

position

The current position of the handle in the space of Handles.matrix.

Returns

Type

Description

floatThe size to use for a handle at the specified position.

Remarks

This method is the default value assigned to PrimitiveBoundsHandle.midpointHandleSizeFunction for new PrimitiveBoundsHandle instances, and is not intended to be called on its own.