お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseColor b
を Color a
で減算します。各色成分は個別にスケーリングされます。
// magenta - blue = red var redColor : Color = Color.magenta - Color.blue;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public Color redColor = Color.magenta - Color.blue; }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): public redColor as Color = (Color.magenta - Color.blue)