CharacterController.height 高度
var height : float
Description描述
The height of the character's capsule
角色胶囊体的高度。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public CharacterController controller;public void Awake() {controller = GetComponent();controller.height = 2.0F;}}
// Set the controller height to 2.0//设置控制器的高度为2.0。var controller : CharacterController;controller = GetComponent(CharacterController);controller.height = 2.0;