Ok i’m new to unity but after following several tutorials i wanted to try to see if i get this working and i can not.
I imported all the assets from GW2NET and when i edit the code in visual studio i finds all references without a problem.
but when going to unity after i save the files i get this error
The type `System.ValueType’ is defined in an assembly that is not referenced. Consider adding a reference to assembly.
its referring to this line
Debug.Log((float)myavatar.AvatarPosition.X);
can anybody explain to me what i’m doing wrong? again all the needed files are imported in Unity.
here is the sample code that I tried to see if i could read the data needed.
using GW2NET.MumbleLink;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MainCamera : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
var mumbler = MumbleLinkFile.CreateOrOpen();
var myavatar = mumbler.Read();
if (target != null)
{
Debug.Log(transform.position.x);
[code=CSharp]Debug.Log((float)myavatar.AvatarPosition.X);
}
}
}[/code]