playMaker

Author Topic: Prefabs vs Scene  (Read 792 times)

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Prefabs vs Scene
« on: May 01, 2020, 10:06:48 AM »
Somehow instantiating prefabs in an empty scene to create a level is faster than loading up a scene.

Is this normal?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Prefabs vs Scene
« Reply #1 on: May 01, 2020, 10:31:56 AM »
hi.
i never tested that, does it also go faster in builds?

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: Prefabs vs Scene
« Reply #2 on: May 01, 2020, 12:03:04 PM »
Yup, I prefab all the menu, the platforms, the powerups, the hero, the enemies and it is faster in profiler, but the downside is too many positioning. It is in 2d setup, not sure about 3d.

Just wondering if this is the right practice...