playMaker

Author Topic: Input System Actions (Git Install)  (Read 27760 times)

Digitom

  • Junior Playmaker
  • **
  • Posts: 61
Input System Actions (Git Install)
« on: March 11, 2020, 05:59:49 PM »
Hello,

I have created custom actions for the Input System.



First, make sure you have git installed on your computer: https://git-scm.com/download/win

You can install these actions using this git address and the package manager:


https://gitlab.com/toomasio/playmakerinputsystemactions.git

To update the package, delete the 'packages-lock.json' file in your UnityProject\Packages
« Last Edit: February 26, 2021, 09:57:33 AM by Digitom »

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Unity Input System [In Preview] Actions
« Reply #1 on: March 13, 2020, 11:36:49 AM »
Fantastic. Thanks for that!

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 22
    • Odd but Awesome
Re: Unity Input System [In Preview] Actions
« Reply #2 on: August 01, 2020, 08:25:51 AM »
Hi Digitom,

Thanks for taking the time to make those actions.

I was wondering if you had the same experience as myself with the Read Bool Value while using a gamepad (I am using a Logitech F310). It seems to flicker true/false while the joystick is rotated around the extremeties of movement (Bool_Flicker.PNG). Pushing in one direction continuously is fine (the read is solid) but for example - going from full forwards and adding some turn to the sides it flickers all the while the stick is moving.

Cheers
JG

Check out my games & VR Cardboard titles at https://oddbutawesome.weebly.com/apps-new.html

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 808
Re: Unity Input System [In Preview] Actions
« Reply #3 on: August 03, 2020, 10:30:32 AM »
Quote from: Odd_But_Awesome
I was wondering if you had the same experience as myself with the Read Bool Value while using a gamepad (I am using a Logitech F310). It seems to flicker true/false while the joystick is rotated around the extremeties of movement (Bool_Flicker.PNG). Pushing in one direction continuously is fine (the read is solid) but for example - going from full forwards and adding some turn to the sides it flickers all the while the stick is moving.

Is it flickering because of changes in the stick rotation only when pushed to the edge?

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 22
    • Odd but Awesome
Re: Unity Input System [In Preview] Actions
« Reply #4 on: August 04, 2020, 01:07:48 PM »
It is flickering anytime the joystick (tried both L & R) is not at 0 and is moved around continuously. At 0 it reads a steady 'False' (as it should). Held at any direction at max I get a steady 'True' (as it should). But anytime the stick is in motion the flickering occurs. Like the rotating the stick in circles to all corners at full extents for calibration.

My character seems to be moving smoothly but that could be due to early stages, no optimisation required yet, its just a box. decent PC speed etc.


Check out my games & VR Cardboard titles at https://oddbutawesome.weebly.com/apps-new.html

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 808
Re: Unity Input System [In Preview] Actions
« Reply #5 on: August 05, 2020, 09:22:34 AM »
Might be a sensitivity thingy.
If this doesn't affect the smoothness of the character, maybe it's not a big issue. If it returns and proves annoying during the beta, perhaps you will have to keep an eye on the stick's movement and angle manually, that is, ignore the flickering when you are above certain values and do the float comparisons yourself as a measure of precaution.

UEP

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Unity Input System [In Preview] Actions
« Reply #6 on: August 10, 2020, 05:59:14 AM »
@Digitom Thank you so much for this. I'm getting the MVP done for a multiplayer RPG and I've wanted the ease of the new input system and Playmaker in one. I'm grateful you've done this and I hope you continue to develop these actions out in the future.

BlizStudio

  • Playmaker Newbie
  • *
  • Posts: 26
    • Bliz Studio Web site
Re: Unity Input System [In Preview] Actions
« Reply #7 on: September 13, 2020, 02:47:19 PM »
@digitom dude this looks incredible!! Thanks for putting this together and posting for everyone.  Just getting started and this seems massively helpful for thinking about all different types of input devices.

You are awesome!

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Unity Input System [In Preview] Actions
« Reply #8 on: September 21, 2020, 10:33:50 AM »
I'm having some freezes and weird things happening using these FSMs.

One thing I really noticed, is the Vector2 values are instantly 1 or -1. In old input method, the Get Axis action had a really nice smooth ramp from 0 to 1/-1, which made for lovely smooth movement. I also miss the multiplier form the Get Axis, as it was so useful for adding forces etc.


Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Unity Input System [In Preview] Actions
« Reply #9 on: September 21, 2020, 02:53:02 PM »
You should be able to return analog values, too, by going into the input asset (where you set everything up) and inspect the options under the vector2 binding.

colpolstudios

  • Sr. Member
  • ****
  • Posts: 362
Re: Unity Input System [In Preview] Actions
« Reply #10 on: October 11, 2020, 12:01:55 PM »
Hi there, I decided to use the unity new input system using the new actions.

Edit: just spotted the error with the W, A, S and D keys. it's an easy fix: 

The 3D SHMUP tutorial looked great but needed to be adjusted for the new input system.

Link to the tutorial: https://www.youtube.com/watch?v=zxA0QncpT28

The easiest instructions Re: The new input can be found here:

https://www.youtube.com/watch?v=yRI44aYLDQs

Here is a screenshot of my input: https://ibb.co/5LXmK7T

Here are the actions in the FSM: https://ibb.co/rMJNHvD

Notice I am using a custom action "CustomGetAxisVector" This action uses float values rather than Axis, with the added benefit of a handy multiplier.

However, the custom action seems unavailable within the Ecosystem.

Hope that this information proves to be helpful.

Regards, colpolstudios
« Last Edit: October 11, 2020, 06:10:48 PM by colpolstudios »

colpolstudios

  • Sr. Member
  • ****
  • Posts: 362
Re: Unity Input System [In Preview] Actions
« Reply #11 on: October 11, 2020, 07:44:33 PM »
Hi, again I've been busy assigning new controls.

By just copying the 2d vector within the new unity inputs you can assign different varitions to the controler used.

I have playstation controller D-pad + left joystick and similar with a Xbox.

However I have ran into an issue when building to web GL.

I have attached the log info:

 
 


I have some unity errors when building to Web GL.


colpolstudios

  • Sr. Member
  • ****
  • Posts: 362
Re: Unity Input System [In Preview] Actions
« Reply #12 on: October 17, 2020, 05:41:56 PM »
I tried to build again, but this time I removed the playmaker Wizard and the link file.

Still will not build.

I have sent an error report today.

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 808
Re: Unity Input System [In Preview] Actions
« Reply #13 on: November 17, 2020, 06:44:43 AM »
I tried to build again, but this time I removed the playmaker Wizard and the link file.

Still will not build.

I have sent an error report today.

At the bottom of the log I see this:

Quote
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0027c] in <9ddd600ae5964fe0b21a870e08c53748>:0
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <9ddd600ae5964fe0b21a870e08c53748>:0

Perhaps try a search on the web for this.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7620
    • jinxtergames
Re: Unity Input System [In Preview] Actions
« Reply #14 on: November 17, 2020, 08:27:05 AM »
hi.
This is the 1st error, try googling it :
compiler frontend failed to generate LLVM bitcode, halting

it seems to be a unity issue.