Is there a name for a mini class that is not a struct?

Posted by user1555300 on Programmers See other posts from Programmers or by user1555300
Published on 2013-11-10T04:22:34Z Indexed on 2013/11/10 10:16 UTC
Read the original article Hit count: 147

Filed under:
|

I have a couple of mini-classes that are not nested classes. They need to be passed around between different larger classes to use. In a way, they act like Tuples, storing fields in them. For example,

[Serializable]
public class TransformObject {
    public GameObject GameObj;
    public tk2dCameraAnchor Anchor;
    public ManagerTransform MTransform;
}

I have a few of them for my game I have been developing. They have to be classes, not struct because the Unity3d editor will not show in the inspector if so. I was just wondering if there is a official name for these kind of mini classes.

© Programmers or respective owner

Related posts about naming

Related posts about class