最終更新:2018-07-25 (水) 05:12:46 (2094d)  

UnityEngine.Component
Top / UnityEngine.Component

GameObject にアタッチされる全てに対するベースのクラス

http://docs.unity3d.com/jp/current/ScriptReference/Component.html

メモ

  • コードにより直接コンポーネントが生成されることはないことに注意してください。
  • その代わりにスクリプトコードを記載し、スクリプトを GameObject にアタッチします。

継承関係

継承

サブクラス

プロパティ

メソッド

UnityEngine.Behaviourから継承

  • enabled? - インスペクタでの有効化のチェックと同期
  • isActiveAndEnabled?

UnityEngine.MonoBehaviourから継承

  • useGUILayout?

Deprecated (use GetComponent)

  • animation
  • audio
  • collider
  • collider2D
  • constantForce
  • guiElement
  • guiText
  • guiTexture
  • hingeJoint
  • light
  • networkView
  • particleEmitter
  • particleSystem
  • renderer
  • rigidbody
  • rigidbody2D