playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
(Moderator:
600
) »
ArrayMaker - Get all gameobjects with Tag[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: ArrayMaker - Get all gameobjects with Tag[SOLVED] (Read 3305 times)
escpodgames
Hero Member
Posts: 687
ArrayMaker - Get all gameobjects with Tag[SOLVED]
«
on:
February 02, 2013, 03:29:16 AM »
Hi,
I'm not sure if this has been created (I've looked and all I can find is get closest gameobject) but what I'm after is an action that will get all the gameobjects in a scene and create an array out of them. Basically when my level loads it will create an array of all the spawn points, as each level could have a different amout it would be great to do this on load and not manually add them each level.
Cheers
Andrew
«
Last Edit: February 07, 2013, 02:51:30 AM by jeanfabre
»
Logged
Simple Assets -
https://www.assetstore.unity3d.com/en/#!/publisher/5217
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: ArrayMaker - Get all gameobjects with Tag
«
Reply #1 on:
February 02, 2013, 03:17:48 PM »
Hi,
I would take the opposite approach. Every object that wants to register itself as a spawning point should add itself to that array, then you avoid complex and resource intensive search in your scene.
Does that make sense?
bye,
Jean
Logged
escpodgames
Hero Member
Posts: 687
Re: ArrayMaker - Get all gameobjects with Tag
«
Reply #2 on:
February 02, 2013, 08:52:43 PM »
Thanks Jean,
Now that you have pointed it out it seems very obvious, thanks again for your help.
Logged
Simple Assets -
https://www.assetstore.unity3d.com/en/#!/publisher/5217
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
(Moderator:
600
) »
ArrayMaker - Get all gameobjects with Tag[SOLVED]