Olympic1 has quit [Read error: Connection reset by peer]
Olympic1 has joined #Kopernicus
Olympic1 has quit [Ping timeout: 190 seconds]
Olympic1 has joined #Kopernicus
UmbralRaptor is now known as NomalRaptor
<
Sigma88>
thomas is it possible to get a list of all gameobjects on a planet?
<
Thomas>
Sigma88: ^
<
Sigma88>
what am I looking at?
<
Sigma88>
this looks like a thing that prints a tree of game objects
<
Sigma88>
I guess planets are somewhere in there, and I can look at the children of each planet
<
Thomas>
Sigma88: This prints out the tree of one gameobject
<
Thomas>
you need to pass the planets game object to it
<
Sigma88>
prints as in "prints in the logs" ?
<
Sigma88>
what if I want a list of objects?
<
Sigma88>
like an array
<
Sigma88>
one I can go through ingame
<
Sigma88>
what does GameObjectWalk do?
<
Sigma88>
oh nevermind
<
Sigma88>
it's the name of the code you linked me
<
Sigma88>
ok, so starting from the planet I recursively look for all transforms and so I should get a list of objects
<
Sigma88>
I can then browse the list of objects for what I am looking for
<
Thomas>
Yes, you copy the name, and search for the name you need
<
Sigma88>
I don't want to use names
<
Sigma88>
I want to find all the "Lights"
<
Sigma88>
so that I can resize them
<
Thomas>
object.GetComponentsInChilden<Light>()?
<
Sigma88>
does that work even for children of children?
<
Sigma88>
or just for the first generation?
<
Thomas>
works for everything
<
Sigma88>
everything deeper in the tree than the object I use
<
Sigma88>
sounds good
<
Sigma88>
and can I get the planet object from "FlightGlobals.Bodies" ?
regex has joined #Kopernicus
TonyAirborne has joined #Kopernicus
TonyC_alt has joined #Kopernicus
TonyAirborne has quit [Ping timeout: 383 seconds]
TonyC_alt has quit [Read error: Connection reset by peer]
NomalRaptor is now known as UmbralRaptor
regex has quit [Remote host closed the connection]
Raidernick has quit [Read error: Connection reset by peer]
Raidernick has joined #Kopernicus