Search Unity

Is there a way to create a custom gameobject?

Discussion in 'Scripting' started by WizByteGames, Mar 29, 2013.

  1. WizByteGames

    WizByteGames

    Joined:
    Mar 28, 2013
    Posts:
    70
    Hi I just started working with unity, and I want to port a game that I made in XNA a few years ago over as a startup project. I was wondering is there a way to create a custom gameobject that I can use to make reusable tile maps? I have looked all over the internet for a solution, but haven't found anything.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    What do you mean by "custom gameobject"? You create GameObjects in Unity by either instantiating prefabs, or using the GameObject constructor.

    --Eric
     
  3. WizByteGames

    WizByteGames

    Joined:
    Mar 28, 2013
    Posts:
    70
    I want to be able to select a custom created gameobject that I create my selff. For example I would have a tile map as a game object.
     
  4. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    I am not sure but maybe this is what you want, you should create your custom model in any 3d modelling software, bring it to unity and make a prefab of it and use it as you want.
     
  5. TwentySicks

    TwentySicks

    Joined:
    Sep 6, 2012
    Posts:
    51
    You can create an empty gameobject, and fill it with whatever you want in it.