In the scripts folder, under assets I am trying to define a simple data class:
File: TirggerObject.cs
using UnityEngine;
public class TriggerObject {
public int TriggerID { get; set;}
public Vector2 Location { get; set;}
public float TriggerRadius { get; set;}
}
The class name has a warning associated with it: "Warning: Type should be declared inside namespace 'AssemblyCSharp'"
As far as I can tell the AssembleCSharp is where the class is defined. The only oddity I see is that the solution file tree in the MonoDvelop main UI shows the class file: TriggerObject.cs as being in the assembly "Assembly-CSharp". While the warning message calls it "AssemblyCSharp", without the dash.
I am assuming I can live with this warning since the code seems to run. But, I am struck by how little I find about Unity's assemblies and I can find no reference to this exact warning. I am also not finding any clear explanation of why this is not already in the right assemble or how I can place it in the right assembly.
I hate not understanding warnings.