I need help get rid of this errors regarding the mapSize
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor(typeof(TileMap))]
public class TileMapEditor : Editor {
public TileMap map;
public override void OnInspectorGUI(){
EditorGUILayout.BeginVertical ();
map.mapSize = EditorGUILayout.Vector2Field ("Map Size;", map.mapSize);
EditorGUILayout.EndVertical ();
}
void OnEable(){
map = target as TileMap;
}
}
![alt text][1]
[1]: /storage/temp/81942-error.jpg
↧