表示テーマ
UITextButton
文字を使ったUIボタンの操作とActionを扱います。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.UITextButton(Class) - 継承元:NEMEngine.Component
- Inspector:UITextButton
ActionName
csharp
public string ActionName1
操作に対応するAction名です。
操作:読取・変更。
対応するInspector:UITextButton。
ClickedThisFrame
csharp
public bool ClickedThisFrame1
このフレームに決定入力で押されたか
操作:読取専用。
Enabled
csharp
public bool Enabled1
このComponentの処理を有効にします。GameObject全体のアクティブ状態とは別です。
操作:読取・変更。
対応するInspector:UITextButton。
FromEntity
csharp
public static UITextButton FromEntity(GameObject gameObject)1
既にComponentを持つGameObjectから操作用の参照を作ります。Componentを追加する操作ではありません。
| 引数 | 型 | 既定値 |
|---|---|---|
gameObject | NEMEngine.GameObject | 必須 |
戻り値:NEMEngine.UITextButton。
WasClicked
csharp
public bool WasClicked1
このフレームに決定入力で押されたか
操作:読取専用。
componentTypeID
csharp
public static int componentTypeID1
組み込みComponentの接続識別子です。通常のゲームコードではGetComponentで取得します。
操作:読取専用。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。