Version: 2017.3
public float radius ;

描述

该角色胶囊体的半径。

using UnityEngine;
using System.Collections;

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