terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ SetupTemplate()

void UnityEngine.UI.Dropdown.SetupTemplate ( Canvas rootCanvas)
inlineprivate

Definition at line 285 of file Dropdown.cs.

286 {
287 int num = 1;
288 RectTransform template = this.m_Template;
289 if (num == 0)
290 {
291 }
292 bool flag = template;
293 GameObject gameObject = this.m_Template.gameObject;
294 int num2 = 1;
295 int num3 = 1;
296 gameObject.SetActive(num2 != 0);
301 RectTransform template2 = this.m_Template;
302 bool flag3 = transform == template2;
303 RectTransform template3 = this.m_Template;
304 Debug.LogError("The dropdown template is not valid. The template must have a child GameObject with a Toggle component serving as the item.", template3);
305 if (this.validTemplate)
306 {
307 Dropdown.DropdownItem dropdownItem = componentInChildren.gameObject.AddComponent<Dropdown.DropdownItem>();
308 Text itemText = this.m_ItemText;
311 if (transform2 != null)
312 {
313 }
315 Canvas component = this.m_Template.parent.GetComponent<Canvas>();
316 Canvas canvas = gameObject.AddComponent<Canvas>();
317 int num4 = 1;
319 int num5 = 30000;
321 int sortingLayerID = rootCanvas.sortingLayerID;
322 canvas.sortingLayerID = sortingLayerID;
323 BaseRaycaster rootRaycaster = component.GetComponents<BaseRaycaster>().m_RootRaycaster;
324 Type type;
327 return;
328 }
329 }
class f__AnonymousType0<< Count > j__TPar
Component GetComponentInChildren(Type t, bool includeInactive)
Definition Component.cs:61
Component GetComponent(Type type)
Definition Component.cs:41
void GetComponents(Type type, List< Component > results)
Definition Component.cs:189
GameObject gameObject
Definition Component.cs:31
Component GetComponent(Type type)
Definition GameObject.cs:27
Component AddComponent(Type componentType)
void SetActive(bool value)
RectTransform m_Template
Definition Dropdown.cs:521

References UnityEngine.GameObject.AddComponent(), UnityEngine.Component.gameObject, UnityEngine.Component.GetComponent(), UnityEngine.GameObject.GetComponent(), UnityEngine.Component.GetComponentInChildren(), UnityEngine.Component.GetComponents(), UnityEngine.UI.Dropdown.itemText, j__TPar, UnityEngine.Debug.LogError(), UnityEngine.UI.Dropdown.m_ItemText, UnityEngine.UI.Dropdown.m_Template, UnityEngine.Transform.parent, UnityEngine.GameObject.SetActive(), UnityEngine.Canvas.sortingLayerID, UnityEngine.Component.transform, and UnityEngine.UI.Dropdown.validTemplate.