-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindSkybox.cs
37 lines (32 loc) · 937 Bytes
/
FindSkybox.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using UnityEngine;
public class FindSkybox : MonoBehaviour
{
private void Start()
{
ServiceProvider.Instance.DevConsole.RegisterCommand("FindSkyDome", FindSkyDome);
}
private void FindSkyDome()
{
GameObject sky = GameObject.Find("SkyDome_Low(Clone)");
if (sky == null)
{
Debug.LogError("SkyDome not found");
}
else
{
Component[] components = sky.GetComponents<Component>();
for (int i = 0; i < components.Length; i++)
{
Debug.Log("SkyDome component found: " + components[i].GetType());
}
}
}
}
/*
* SkyDome component found: UnityEngine.Transform
* SkyDome component found: TOD_Sky
* SkyDome component found: TOD_Animation
* SkyDome component found: TOD_Time
* SkyDome component found: TOD_Components
* SkyDome component found: TOD_Resources
*/