文档

Unity Engine

Download Unity

Unity Engine

r

Red component of the color.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public byte r

Examples

using UnityEngine;public class Example : MonoBehaviour{ Color32 color = Color.white; void Start() { color.r = 0; }}