in javascript.
Is it possible to include the unity3d GameObject inside a new class? How would one go about creating instances of this new class?
thanks for any pointers or suggestions.
in javascript.
Is it possible to include the unity3d GameObject inside a new class? How would one go about creating instances of this new class?
thanks for any pointers or suggestions.
As Jessy, I'm not really sure what you want to do. But to include a gameObject in a new class would just be like adding a variable pointing to a GameObject
public class MyClass {
public GameObject myGameObject;
}
Creating instanced would be just like any other class: new MyClass ();
However if you want to inherit from a GameObject, that won't work, inheritance from GameObject is not allowed.