W
W
WasTabon2022-02-03 19:23:11
Unity
WasTabon, 2022-02-03 19:23:11

Public variable not showing up in menu?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;

public class Main : MonoBehaviour
{
    public Ship controls;
    private void Awake() 
    {
        controls.MovinNshootin.Move.performed += _ => Move();
    }
    void Move ()
    {
        Debug.Log("Moved");
    }
}

61fc0152bbefc067078846.png
And where?
Ship type, if anything, this is 61fc0168301c1622749513.png
In the new input system

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GFX Data, 2022-02-03
@ShockWave2048

Ship must inherit from MonoBehaviour.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question