Version: 2017.2
public float slopeLimit ;

描述

这些角色控制器的坡度限制(单位为度)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public CharacterController controller; void Example() { controller = GetComponent<CharacterController>(); controller.slopeLimit = 45.0F; } }