CharacterController.stepOffset 台阶偏移量

var stepOffset : float

Description描述

The character controllers step offset in meters

以米为单位的角色控制器的台阶偏移量。

也可以称为,台阶高度,步高

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
    public CharacterController controller;
    public void Awake() {
		controller = GetComponent();
    	controller.stepOffset = 2.0F;
    }
}
// Set the controller step offset to 2.0
//设置控制器的台阶高度
var controller : CharacterController;
controller = GetComponent(CharacterController);
controller.stepOffset = 2.0;
Page last updated: 2010-12-14