Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

I'm getting an error and I don't understand why. please read code?

$
0
0
this is what it says, Assets/scripts/HatController.cs(29,34): error CS1729: The type `UnityEngine.Vector2' does not contain a constructor that takes `1' arguments

and this is my code. I don't understand what is wrong in line 29 and 34 spaces over.

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class HatController : MonoBehaviour {
  5.  
  6.     public Camera cam;
  7.  
  8.     private float maxWidth;
  9.     private bool canControl;
  10.     public float xMin, xMax, yMin, yMax;
  11.     // Use this for...
I'm getting an error and I don't understand why. please read code?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>