[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart2 (1002レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
638
(1): 2020/12/21(月)23:00 ID:AUi0A0VK(1/2) AAS
InputSystemを使い、PS4コントローラを設定しようと思い、動画リンク[YouTube]
を参考にやりましたが動画リンク[YouTube]の所で赤波が出ます。
原因として考えられるのは何でしょうか?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem.Controls;
using UnityEngine.InputSystem;//定義が必要
public class PS4ctrl : MonoBehaviour
{

// Start is called before the first frame update

//InputAction move,attack;//INPUTアクション型の定義
InputAction move, attack;
//MainGame
private void Awake()
{

move = GetComponent<PlayerInput>().currentActionMap{"Move"};//エラー
//UnityEngine.InputSystem.InputActionMapをUnityEngine.InputSystem.InputActionに暗黙的に変換できません

}
1-
あと 364 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.008s