class in UnityEditor.IMGUI.Controls
/
继承自:IMGUI.Controls.PrimitiveBoundsHandle
用于在 Scene 视图中编辑胶囊形包围体积的复合手柄。
胶囊体的体积由两个参数定义。height 指定了沿着 heightAxis 的上限和下限,而 radius 指定了胶囊体高度轴上下点之间的横截面的半径。\
\
场景视图中的 2D 和 3D CapsuleBoundsHandle。\
\
另请参阅:PrimitiveBoundsHandle。
height | 返回或指定胶囊体包围体积的高度。 |
heightAxis | 返回或指定 height 映射到的手柄空间的轴。radius 将映射到剩余的轴。 |
radius | 返回或指定胶囊体包围体积的半径。 |
CapsuleBoundsHandle | 创建 CapsuleBoundsHandle 类的新实例。 |
DrawWireframe | 为此实例绘制线框胶囊体。 |
OnHandleChanged | 在控制手柄被拖到场景中时使用的回调。 |
axes | 指定哪些轴应显示控制手柄的标志。 |
center | 返回或指定手柄包围体积的中心。 |
handleColor | 返回或指定控制手柄的颜色。 |
midpointHandleDrawFunction | 显示控制手柄时使用的可选 CapFunction。如果未指定值,则默认为 Handles.DotHandleCap。 |
midpointHandleSizeFunction | 用于指定中点控制手柄应该多大的 SizeFunction。 |
wireframeColor | 返回或指定线框形状的颜色。 |
DrawHandle | 使用实例的当前配置在当前手柄摄像机中显示此实例的函数。 |
SetColor | 将 handleColor 和 wireframeColor 设置为相同的值。 |
GetSize | 获取此实例包围体积的当前大小。 |
IsAxisEnabled | 获取指示是否为当前实例启用了指定轴的值。 |
SetSize | 设置此实例包围体积的当前大小。 |
DefaultMidpointHandleSizeFunction | 返回一个固定屏幕空间尺寸的 SizeFunction。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.