Question by
kevinrocks_786 · Dec 13, 2015 at 04:01 PM ·
unity 5objectclassclassesunityobject
How to make objects without the new keyword
Hello guys, I was wondering why is it that when I create a custom class, I have to declare an object like this:
Person Bob = new Person;
But with Unity's custom classes I don't; Example:
puiblic RaycastHit hit;
public Color myColor;
public RigidBody rB;
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612052403im_/https://answers.unity.com/themes/thub/images/avi.jpg)