Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Prefabs vs EntityGroups

Discussion in 'Project Tiny' started by ronblockparty, Feb 5, 2019.

  1. ronblockparty

    ronblockparty

    Joined:
    Oct 13, 2018
    Posts:
    6
    Browsing through the sample projects, it seems like when many of the same type of entity need to be created, an EntityGroup is instantiated rather than a prefab. For example, the MatchThree sample's GemService class has a static method createGemOfType that instantiates the Gem EntityGroup. FlyingYolk's SpawnerSystem class similarly instantiates Pipes, which are also an EntityGroup.

    Is there any guidance on when EntityGroups should be used vs Prefabs? Based on the documentation and my very little experience starting to port a game to Tiny, EntityGroups can be used where Prefabs would have been used in vanilla Unity.

    Thanks!
     
  2. abeisgreat

    abeisgreat

    Joined:
    Nov 21, 2016
    Posts:
    45
    You're correct, as it stands today you should use EntityGroups as prefabs when working in Tiny.

    In the tutorial video series (I think) they mention that at some point proper Prefab support will come, but I can't say what they would offer over EntityGroups.
     
    ronblockparty likes this.