I just downloaded the new PSM Unity beta and the newest PSM sdk and have been trying to get code for input from the Vita to work. Everything builds fine in Mono but when I try and run the game in Unity, I get the following error:
MissingMethodException: Cannot find the requested method.
Sce.PlayStation.Core.Input.GamePad.GetData (Int32 deviceIndex)
I have added the dll to my project and it is visible in both Unity and monodevelop. I have tried switching the API Compatibility Level from 2.0 Subset to 2.0 and renaming the dll but those attempts did nothing. I am not sure what else I should try.
Here is my code:
using UnityEngine;
using System.Collections;
using Sce.PlayStation.Core.Input;
public class ThirdPersonCamera : MonoBehaviour
{
void Start()
{
}
void FixedUpdate ()
{
var gamePadData = GamePad.GetData(0);
transform.position += transform.forward * 2f * gamePadData.AnalogLeftY;
}
}
The call to GamePad.GetData(0) is what cannot be found.
Thanks for any help!