Hello Guys, i want to add mobile controls to unity´s 2d game kit, so in playerinput i have Code (CSharp): namespace Gamekit2D { public class PlayerInput : InputComponent, IDataPersister { public static PlayerInput Instance { get { return s_Instance; } } protected static PlayerInput s_Instance; public bool HaveControl { get { return m_HaveControl; } } public InputButton Pause = new InputButton(KeyCode.Escape, XboxControllerButtons.Menu); public InputButton Interact = new InputButton(KeyCode.E, XboxControllerButtons.Y); public InputButton MeleeAttack = new InputButton(KeyCode.K, XboxControllerButtons.X); public InputButton RangedAttack = new InputButton(KeyCode.O, XboxControllerButtons.B); public InputButton Jump = new InputButton(KeyCode.Space, XboxControllerButtons.A); public InputAxis Horizontal = new InputAxis(KeyCode.D, KeyCode.A, XboxControllerAxes.LeftstickHorizontal); public InputAxis Vertical = new InputAxis(KeyCode.W, KeyCode.S, XboxControllerAxes.LeftstickVertical); i want to add ui button and i want to make that button do Code (CSharp): public InputButton Pause = new InputButton(KeyCode.Escape, XboxControllerButtons.Menu); This. Please Help im new to unity
Hi there, This is the Package Manager sub forum which is a good place for issues related to the Package Manager itself. For questions relating to a specific package, it's best to ask in their corresponding sub forum. Have you tried the 2D sub forum? Best, Ethan