I created a variable
public Vector2 virtualRes;
assigned
virtualRes = new Vector2(800, 400);
ran it
variable contains
virtualRes = error CS0103: The name ‘DebugDisplayString’ does not exist in the current context
How can this be?
Am I referencing a Monogame assembly that does not support Vector2?
`
Vector2 provides an internal property DebugDisplayString that returns a string representation of the Vector2 for use by Visual Studio’s debug visualizer. This property is referenced by the DebugDisplayAttribute on Vector2. This is an example of how it looks (using latest MonoGame).
Why your editor cannot locate the DebugDisplayString property in Vector2, I do not know.
Not sure what is going on. I now can’t even get into my code. I keep getting this error on my game object:
System.NullReferenceException: ‘Object reference not set to an instance of an object.’
When I try to set a reference to a monogame assembly visual studio keeps changing the reference to something else.