最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

約束-父約束 (Parent Constraints)

2020-11-23 14:09 作者:unity_某某師_高錦錦  | 我要投稿

Parent Constraint 將移動(dòng)并旋轉(zhuǎn)游戲?qū)ο?,就好像它?Hierarchy 窗口中另一個(gè)游戲?qū)ο蟮淖禹?xiàng)一樣。不過(guò),該組件提供了一些優(yōu)勢(shì),這是將某個(gè)游戲?qū)ο笞優(yōu)榱硪粋€(gè)游戲?qū)ο蟮母疙?xiàng)所不能實(shí)現(xiàn)的,具體包括:

  • Parent Constraint 不會(huì)影響縮放比例。

  • 一個(gè) Parent Constraint 可以鏈接到多個(gè)游戲?qū)ο蟆?/p>

  • 游戲?qū)ο蟛槐厥?Parent Constraint 鏈接到的游戲?qū)ο蟮淖禹?xiàng)。

  • 可以通過(guò)指定權(quán)重以及每個(gè)源游戲?qū)ο蟮臋?quán)重來(lái)改變約束的影響。

例如,要將一把劍放在角色的手中,應(yīng)將 Parent Constraint 組件添加到劍游戲?qū)ο笊稀T?Parent Constraint 的?Sources?列表中,鏈接到角色的手。這樣,劍的移動(dòng)將被約束到手的位置和旋轉(zhuǎn)。

Parent Constraint 組件

屬性

Property:????????????????????????????????????????????????????????????????????????Function:

Activate????????????After you move and rotate the constrained GameObject and its source GameObjects, click?Activate?to save this information.?Activate?saves the current offset from the source GameObjects in?Rotation At Rest,?Position At Rest,?Position Offset, and?Rotation Offset, then checks?Is Active?and?Lock.

Zero????????????????????Sets the position and rotation of the constrained GameObject to the source GameObjects.?Zero?resets the?Rotation At Rest,?Position At Rest,?Position Offset, and?Rotation Offset?fields then checks?Is Active?and?Lock.

Is Active????????Toggles whether or not to evaluate the Constraint. To also apply the Constraint, make sure?Lock?is checked.

Weight????????????The strength of the Constraint. A weight of 1 causes the Constraint to move and rotate this GameObject at the same rate as its source GameObjects. A weight of 0 removes the effect of the Constraint completely. This weight affects all source GameObjects. Each GameObject in the?Sources?list also has a weight.

Constraint Settings?????????

Lock????????Toggle to let the Constraint move and rotate the GameObject. Uncheck this property to edit the position and rotation of this GameObject. You can also edit the Rotation At Rest, Position At Rest, Position Offset, and Rotation Offset properties. If Is Active is checked, the Constraint updates the Rotation At Rest, Position At Rest, Position Offset, or Rotation Offset properties for you as you move and rotate the GameObject or its Source GameObjects. When you are satisfied with your changes, check Lock to let the Constraint to control this GameObject. This property has no effect in Play Mode.

Position At Rest????????????????????The X, Y, and Z values to use when Weight is 0 or when the corresponding?Freeze Position Axes?are not checked. To edit these fields, uncheck?Lock.

Rotation At Rest????????????????The X, Y, and Z values to use when Weight is 0 or when the corresponding?Freeze Rotation Axes?are not checked. To edit these fields, uncheck?Lock.

Position Offset????????????????????The X, Y, and Z position offset from the Transform that the Constraint imposes. To edit these fields, uncheck?Lock.

Rotation Offset????????????????????The X, Y, and Z rotation offset from the Transform that the Constraint imposes. To edit these fields, uncheck?Lock.

Freeze Position Axes????????????Check X, Y, or Z to allow the Constraint to control the corresponding position axes. Uncheck an axis to stop the Constraint from controlling it, which allows you to edit, animate, or script it.

Freeze Rotation Axes????????????Check X, Y, or Z to allow the Constraint to control the corresponding rotation axes. Uncheck an axis to stop the Constraint from controlling it, which allows you to edit, animate, or script it.

SourcesThe list of GameObjects that constrain this GameObject. Unity evaluates source GameObjects in the order they appear in this list. This order affects how this Constraint moves and rotates the constrained GameObject. To get the result you want, drag and drop items in this list. Each source has a weight from 0 to 1.


約束-父約束 (Parent Constraints)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
东明县| 河西区| 德江县| 湛江市| 临夏县| 包头市| 浦县| 麻栗坡县| 行唐县| 安平县| 鸡西市| 东台市| 淳安县| 赣榆县| 虹口区| 化德县| 平乡县| 万全县| 乌鲁木齐市| 融水| 勐海县| 盐边县| 益阳市| 禹城市| 云霄县| 太原市| 沙湾县| 四川省| 明光市| 化隆| 理塘县| 原阳县| 根河市| 类乌齐县| 洛隆县| 汝南县| 沽源县| 武隆县| 锡林郭勒盟| 皮山县| 崇义县|