Hello, I have a pretty basic teleportation script that has a public vector2. Whenever I modify the values for the vector2 value in the Inspector window I get two errors:
- Unsupported type Vector2f
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr) - Unsupported type Vector2f
To show you how simple the script is:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PortalController : MonoBehaviour
{
public Vector2 destination;
void OnTriggerEnter2D(Collider2D other)
{
Controller controller = other.gameObject.GetComponent<Controller>();
if (controller != null )
{
other.transform.position = destination;
}
}
}
Despite getting the errors everything is running perfectly fine when I play the game. Am I missing something elementary?