x


disabled game objects

hi all i was just wandering if disabling a gameobject in the inspector will remove it from putting it in the game build.

more ▼

asked May 01 '12 at 01:54 PM

reptilebeats gravatar image

reptilebeats
1.2k 54 106 137

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Disabling it in the inspector will remove it from the current build in game however it will still be in the game, just not active, it will not affect the player at all, however it could increase draw calls and would be a good idea to remove the gameObject all together, however if you are testing a game with and without a particular gameObject that is the best way to do it.

more ▼

answered May 01 '12 at 02:07 PM

AtomicMarine gravatar image

AtomicMarine
504 42 49 70

ok i thought as much. only asked as i have about a 1000 lights or more which are lightmapped, but i dont need them after to effect the player. so i guess best best is to save all the ones i dont need as a prefab incase i make changes later on.

May 01 '12 at 02:18 PM reptilebeats

That would be the best idea yes, Unities Prefab system is brilliant for such uses

May 01 '12 at 02:25 PM AtomicMarine
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x799
x322

asked: May 01 '12 at 01:54 PM

Seen: 403 times

Last Updated: May 01 '12 at 02:25 PM