Decompiled source of Unity Analyzer v1.0.3
ModdingHelper.dll
Decompiled 2 months ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using HighlightPlus; using Microsoft.CodeAnalysis; using Mirror; using ModdingHelper.CustomEditor; using ModdingHelper.CustomEditor.ColliderOutlines; using ModdingHelper.CustomEditor.EditorCards; using ModdingHelper.UnityEditor; using StarterAssets; using TMPro; using UnityEngine; using UnityEngine.AI; using UnityEngine.Events; using UnityEngine.SceneManagement; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("ModdingHelper")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+dd98967cd0dd6f914222bf6ab7a6e89492596e17")] [assembly: AssemblyProduct("ModdingHelper")] [assembly: AssemblyTitle("ModdingHelper")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace ModdingHelper { [HarmonyPatch] internal class Patches { [HarmonyPatch(typeof(GameCanvas), "Awake")] [HarmonyPostfix] private static void Postfix(GameCanvas __instance) { Plugin.mls.LogInfo((object)"Setting up Unity Editor on Canvas parent..."); CustomCameraController component = ((Component)Camera.main).GetComponent<CustomCameraController>(); AccessTools.Method(typeof(CustomCameraController), "ShowCharacter", new Type[1] { typeof(bool) }, (Type[])null)?.Invoke(component, new object[1] { true }); ((Component)__instance).gameObject.AddComponent<CustomEditorManager>(); } } [BepInPlugin("com.kroes.moddinghelper", "Modding Helper", "1.0.3")] public class Plugin : BaseUnityPlugin { private const string GUID = "com.kroes.moddinghelper"; private const string NAME = "Modding Helper"; private const string VERSION = "1.0.3"; internal static ManualLogSource mls; internal static Plugin instance; internal static Harmony harmony = new Harmony("com.kroes.moddinghelper"); private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } harmony.PatchAll(typeof(Patches)); mls = ((BaseUnityPlugin)this).Logger; mls.LogInfo((object)"Loaded succesfully!"); } } } namespace ModdingHelper.UnityEditor { internal class CustomEditorManager : MonoBehaviour { private Camera playerCamera; private Camera sceneCamera; private Camera previewCamera; private RenderTexture previewRenderTexture; private float sceneCameraX; private float sceneCameraY; private float sceneCameraSensitivity = 70f; private float sceneCameraSpeed = 8f; public static bool isSceneCameraActive; private bool isCursorLocked; private Canvas moddedCanvas; private GameObject previewUIObject; private GameObject leftPanelObj; private GameObject hierarchyContent; private List<GameObject> activeHierarchyNodes = new List<GameObject>(); private GameObject rightPanelObj; private GameObject cardContent; private List<GameObject> dynamicCards = new List<GameObject>(); private TextMeshProUGUI versionText; private TextMeshProUGUI cameraPositionText; private Transform selectedTransform; private ColliderOutlineBase currentOutline; private void Start() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown playerCamera = Camera.main; GameObject val = new GameObject("SceneCamera"); sceneCamera = val.AddComponent<Camera>(); sceneCameraX = 0f; sceneCameraY = 0f; ((Component)sceneCamera).transform.position = new Vector3(0f, 5f, -10f); ((Component)sceneCamera).transform.rotation = Quaternion.Euler(15f, 0f, 0f); GameObject val2 = new GameObject("PreviewCamera"); previewCamera = val2.AddComponent<Camera>(); previewRenderTexture = new RenderTexture(320, 180, 16); previewCamera.targetTexture = previewRenderTexture; CreateUI(); previewUIObject.SetActive(false); ((Behaviour)previewCamera).enabled = false; playerCamera.cullingMask = 0; ((Behaviour)sceneCamera).enabled = true; isSceneCameraActive = true; isCursorLocked = true; if ((Object)(object)versionText != (Object)null) { ((TMP_Text)versionText).text = "Unity Version: " + Application.unityVersion; } } private void CreateUI() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Expected O, but got Unknown //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Expected O, but got Unknown //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0247: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_026b: Expected O, but got Unknown //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Expected O, but got Unknown //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_0311: Unknown result type (might be due to invalid IL or missing references) //IL_031b: Expected O, but got Unknown //IL_0347: Unknown result type (might be due to invalid IL or missing references) //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_0382: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03b0: Unknown result type (might be due to invalid IL or missing references) //IL_03c7: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ef: Expected O, but got Unknown //IL_041e: Unknown result type (might be due to invalid IL or missing references) //IL_0428: Expected O, but got Unknown //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Expected O, but got Unknown //IL_04d7: Unknown result type (might be due to invalid IL or missing references) //IL_0541: Unknown result type (might be due to invalid IL or missing references) //IL_0548: Expected O, but got Unknown //IL_0570: Unknown result type (might be due to invalid IL or missing references) //IL_057d: Unknown result type (might be due to invalid IL or missing references) //IL_058a: Unknown result type (might be due to invalid IL or missing references) //IL_0597: Unknown result type (might be due to invalid IL or missing references) //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_05c5: Expected O, but got Unknown //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_0662: Unknown result type (might be due to invalid IL or missing references) //IL_0679: Unknown result type (might be due to invalid IL or missing references) //IL_0686: Unknown result type (might be due to invalid IL or missing references) //IL_0693: Unknown result type (might be due to invalid IL or missing references) //IL_06b8: Unknown result type (might be due to invalid IL or missing references) //IL_06c2: Expected O, but got Unknown //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_0712: Unknown result type (might be due to invalid IL or missing references) //IL_0729: Unknown result type (might be due to invalid IL or missing references) //IL_0740: Unknown result type (might be due to invalid IL or missing references) //IL_0757: Unknown result type (might be due to invalid IL or missing references) //IL_076e: Unknown result type (might be due to invalid IL or missing references) //IL_0790: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Expected O, but got Unknown //IL_07c8: Unknown result type (might be due to invalid IL or missing references) //IL_07cf: Expected O, but got Unknown //IL_07f3: Unknown result type (might be due to invalid IL or missing references) //IL_0815: Unknown result type (might be due to invalid IL or missing references) //IL_081f: Expected O, but got Unknown //IL_0848: Unknown result type (might be due to invalid IL or missing references) //IL_084f: Expected O, but got Unknown //IL_0889: Unknown result type (might be due to invalid IL or missing references) //IL_08a6: Unknown result type (might be due to invalid IL or missing references) //IL_08ad: Expected O, but got Unknown //IL_08fc: Unknown result type (might be due to invalid IL or missing references) //IL_0903: Expected O, but got Unknown //IL_0923: Unknown result type (might be due to invalid IL or missing references) //IL_094b: Unknown result type (might be due to invalid IL or missing references) //IL_0958: Unknown result type (might be due to invalid IL or missing references) //IL_096f: Unknown result type (might be due to invalid IL or missing references) //IL_097c: Unknown result type (might be due to invalid IL or missing references) //IL_0989: Unknown result type (might be due to invalid IL or missing references) //IL_099a: Unknown result type (might be due to invalid IL or missing references) //IL_09a4: Expected O, but got Unknown //IL_0a21: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Unknown result type (might be due to invalid IL or missing references) //IL_0a4f: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("ModdedCanvas"); moddedCanvas = val.AddComponent<Canvas>(); moddedCanvas.renderMode = (RenderMode)0; moddedCanvas.sortingOrder = 999; CanvasScaler val2 = val.AddComponent<CanvasScaler>(); val2.uiScaleMode = (ScaleMode)1; val2.referenceResolution = new Vector2(1920f, 1080f); val.AddComponent<GraphicRaycaster>(); GameObject val3 = new GameObject("VersionBackground"); val3.transform.SetParent(((Component)moddedCanvas).transform, false); Image val4 = val3.AddComponent<Image>(); ((Graphic)val4).color = ColorThemes.buttonColor; RectTransform component = val3.GetComponent<RectTransform>(); component.anchorMin = new Vector2(0.5f, 1f); component.anchorMax = new Vector2(0.5f, 1f); component.pivot = new Vector2(0.5f, 1f); component.anchoredPosition = new Vector2(0f, 0f); HorizontalLayoutGroup val5 = val3.AddComponent<HorizontalLayoutGroup>(); ((LayoutGroup)val5).padding = new RectOffset(5, 5, 5, 5); ((HorizontalOrVerticalLayoutGroup)val5).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val5).childControlHeight = true; ContentSizeFitter val6 = val3.AddComponent<ContentSizeFitter>(); val6.horizontalFit = (FitMode)2; val6.verticalFit = (FitMode)2; GameObject val7 = new GameObject("VersionText"); val7.transform.SetParent(val3.transform, false); versionText = val7.AddComponent<TextMeshProUGUI>(); ((TMP_Text)versionText).text = "Failed to find Unity version"; ((TMP_Text)versionText).fontSize = 14f; ((TMP_Text)versionText).alignment = (TextAlignmentOptions)514; ((Graphic)versionText).color = ColorThemes.buttonTextColor; GameObject val8 = new GameObject("cameraPositionBackground"); val8.transform.SetParent(((Component)moddedCanvas).transform, false); Image val9 = val8.AddComponent<Image>(); ((Graphic)val9).color = ColorThemes.buttonColor; RectTransform component2 = val8.GetComponent<RectTransform>(); component2.anchorMin = new Vector2(0.5f, 0f); component2.anchorMax = new Vector2(0.5f, 0f); component2.pivot = new Vector2(0.5f, 0f); component2.anchoredPosition = new Vector2(0f, 0f); HorizontalLayoutGroup val10 = val8.AddComponent<HorizontalLayoutGroup>(); ((LayoutGroup)val10).padding = new RectOffset(5, 5, 5, 5); ((HorizontalOrVerticalLayoutGroup)val10).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val10).childControlHeight = true; ContentSizeFitter val11 = val8.AddComponent<ContentSizeFitter>(); val11.horizontalFit = (FitMode)2; val11.verticalFit = (FitMode)2; GameObject val12 = new GameObject("CameraPositionText"); val12.transform.SetParent(val8.transform, false); cameraPositionText = val12.AddComponent<TextMeshProUGUI>(); ((TMP_Text)cameraPositionText).text = "Failed to update camera position"; ((TMP_Text)cameraPositionText).fontSize = 14f; ((TMP_Text)cameraPositionText).alignment = (TextAlignmentOptions)514; ((Graphic)cameraPositionText).color = ColorThemes.buttonTextColor; rightPanelObj = new GameObject("RightPanel"); rightPanelObj.transform.SetParent(((Component)moddedCanvas).transform, false); Image val13 = rightPanelObj.AddComponent<Image>(); ((Graphic)val13).color = ColorThemes.panelColor; RectTransform component3 = rightPanelObj.GetComponent<RectTransform>(); component3.anchorMin = new Vector2(1f, 0f); component3.anchorMax = new Vector2(1f, 1f); component3.pivot = new Vector2(1f, 1f); component3.anchoredPosition = new Vector2(0f, 0f); component3.sizeDelta = new Vector2(360f, 0f); VerticalLayoutGroup val14 = rightPanelObj.AddComponent<VerticalLayoutGroup>(); ((LayoutGroup)val14).padding = new RectOffset(5, 5, 5, 5); ((HorizontalOrVerticalLayoutGroup)val14).spacing = 10f; ((HorizontalOrVerticalLayoutGroup)val14).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val14).childControlHeight = true; ((HorizontalOrVerticalLayoutGroup)val14).childForceExpandHeight = false; previewUIObject = new GameObject("Preview_RawImage"); previewUIObject.transform.SetParent(rightPanelObj.transform, false); RawImage val15 = previewUIObject.AddComponent<RawImage>(); val15.texture = (Texture)(object)previewRenderTexture; LayoutElement val16 = previewUIObject.AddComponent<LayoutElement>(); val16.preferredWidth = 320f; val16.preferredHeight = 180f; val16.flexibleHeight = 0f; GameObject val17 = new GameObject("Cards_ScrollView", new Type[1] { typeof(RectTransform) }); val17.transform.SetParent(rightPanelObj.transform, false); Image val18 = val17.AddComponent<Image>(); ((Graphic)val18).color = ColorThemes.transparent; ScrollRect val19 = val17.AddComponent<ScrollRect>(); val19.horizontal = false; val19.vertical = true; val19.movementType = (MovementType)2; val19.scrollSensitivity = 30f; LayoutElement val20 = val17.AddComponent<LayoutElement>(); val20.flexibleHeight = 1f; GameObject val21 = new GameObject("Viewport", new Type[1] { typeof(RectTransform) }); val21.transform.SetParent(val17.transform, false); val21.AddComponent<RectMask2D>(); RectTransform component4 = val21.GetComponent<RectTransform>(); component4.anchorMin = Vector2.zero; component4.anchorMax = Vector2.one; component4.offsetMin = Vector2.zero; component4.offsetMax = Vector2.zero; cardContent = new GameObject("CardContent", new Type[1] { typeof(RectTransform) }); cardContent.transform.SetParent(val21.transform, false); VerticalLayoutGroup val22 = cardContent.AddComponent<VerticalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val22).spacing = 10f; ((HorizontalOrVerticalLayoutGroup)val22).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val22).childControlHeight = true; ((HorizontalOrVerticalLayoutGroup)val22).childForceExpandWidth = true; ((HorizontalOrVerticalLayoutGroup)val22).childForceExpandHeight = false; ContentSizeFitter val23 = cardContent.AddComponent<ContentSizeFitter>(); val23.verticalFit = (FitMode)2; RectTransform component5 = cardContent.GetComponent<RectTransform>(); component5.anchorMin = new Vector2(0f, 1f); component5.anchorMax = new Vector2(1f, 1f); component5.pivot = new Vector2(0.5f, 1f); component5.anchoredPosition = Vector2.zero; component5.sizeDelta = Vector2.zero; val19.viewport = component4; val19.content = component5; leftPanelObj = new GameObject("LeftPanel"); leftPanelObj.transform.SetParent(((Component)moddedCanvas).transform, false); Image val24 = leftPanelObj.AddComponent<Image>(); ((Graphic)val24).color = ColorThemes.panelColor; RectTransform component6 = leftPanelObj.GetComponent<RectTransform>(); component6.anchorMin = new Vector2(0f, 0f); component6.anchorMax = new Vector2(0f, 1f); component6.pivot = new Vector2(0f, 1f); component6.anchoredPosition = new Vector2(0f, 0f); component6.sizeDelta = new Vector2(360f, 0f); VerticalLayoutGroup val25 = leftPanelObj.AddComponent<VerticalLayoutGroup>(); ((LayoutGroup)val25).padding = new RectOffset(10, 10, 10, 10); ((HorizontalOrVerticalLayoutGroup)val25).spacing = 10f; ((HorizontalOrVerticalLayoutGroup)val25).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val25).childControlHeight = true; ((HorizontalOrVerticalLayoutGroup)val25).childForceExpandHeight = false; GameObject val26 = new GameObject("Button_RefreshHierarchy"); val26.transform.SetParent(leftPanelObj.transform, false); Image val27 = val26.AddComponent<Image>(); ((Graphic)val27).color = ColorThemes.buttonColor; Button val28 = val26.AddComponent<Button>(); ((UnityEvent)val28.onClick).AddListener(new UnityAction(RefreshSceneHierarchy)); LayoutElement val29 = val26.AddComponent<LayoutElement>(); val29.preferredHeight = 35f; val29.flexibleHeight = 0f; GameObject val30 = new GameObject("Text"); val30.transform.SetParent(val26.transform, false); TextMeshProUGUI val31 = val30.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val31).text = "Refresh Hierarchy"; ((TMP_Text)val31).fontSize = 14f; ((Graphic)val31).color = ColorThemes.buttonTextColor; ((TMP_Text)val31).alignment = (TextAlignmentOptions)514; GameObject val32 = new GameObject("Hierarchy_ScrollView"); val32.transform.SetParent(leftPanelObj.transform, false); ScrollRect val33 = val32.AddComponent<ScrollRect>(); val33.horizontal = false; val33.vertical = true; LayoutElement val34 = val32.AddComponent<LayoutElement>(); val34.flexibleHeight = 1f; GameObject val35 = new GameObject("Viewport"); val35.transform.SetParent(val32.transform, false); Image val36 = val35.AddComponent<Image>(); ((Graphic)val36).color = ColorThemes.viewportColor; Mask val37 = val35.AddComponent<Mask>(); val37.showMaskGraphic = true; RectTransform component7 = val35.GetComponent<RectTransform>(); component7.anchorMin = Vector2.zero; component7.anchorMax = Vector2.one; component7.pivot = new Vector2(0.5f, 0.5f); component7.anchoredPosition = Vector2.zero; component7.sizeDelta = Vector2.zero; hierarchyContent = new GameObject("Content"); hierarchyContent.transform.SetParent(val35.transform, false); VerticalLayoutGroup val38 = hierarchyContent.AddComponent<VerticalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val38).spacing = 2f; ((HorizontalOrVerticalLayoutGroup)val38).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val38).childControlHeight = true; ((HorizontalOrVerticalLayoutGroup)val38).childForceExpandHeight = false; ContentSizeFitter val39 = hierarchyContent.AddComponent<ContentSizeFitter>(); val39.verticalFit = (FitMode)2; RectTransform component8 = hierarchyContent.GetComponent<RectTransform>(); component8.anchorMin = new Vector2(0f, 1f); component8.anchorMax = new Vector2(1f, 1f); component8.pivot = new Vector2(0f, 1f); component8.sizeDelta = new Vector2(0f, 0f); val33.content = component8; val33.viewport = component7; } private void RefreshSceneHierarchy() { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) foreach (GameObject activeHierarchyNode in activeHierarchyNodes) { if ((Object)(object)activeHierarchyNode != (Object)null) { Object.Destroy((Object)(object)activeHierarchyNode); } } activeHierarchyNodes.Clear(); Scene activeScene = SceneManager.GetActiveScene(); GameObject[] rootGameObjects = ((Scene)(ref activeScene)).GetRootGameObjects(); GameObject[] array = rootGameObjects; foreach (GameObject val in array) { if (!((Object)(object)val == (Object)(object)((Component)moddedCanvas).gameObject) && !(((Object)val).name == "SceneCamera") && !(((Object)val).name == "PreviewCamera")) { BuildNodeRecursive(val.transform, hierarchyContent.transform, 0); } } } private GameObject BuildNodeRecursive(Transform target, Transform parentUI, int indentLevel) { //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Expected O, but got Unknown GameObject val = new GameObject("Node_" + ((Object)target).name); val.transform.SetParent(parentUI, false); VerticalLayoutGroup val2 = val.AddComponent<VerticalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val2).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val2).childControlHeight = true; ((HorizontalOrVerticalLayoutGroup)val2).childForceExpandHeight = false; LayoutElement val3 = val.AddComponent<LayoutElement>(); val3.flexibleHeight = 0f; EditorNode_Hierarchy editorNode_Hierarchy = val.AddComponent<EditorNode_Hierarchy>(); editorNode_Hierarchy.Initialize(target, indentLevel, SelectTransform, (Transform childTransform, Transform childParentUI) => BuildNodeRecursive(childTransform, childParentUI, indentLevel + 1)); activeHierarchyNodes.Add(val); return val; } private void Update() { //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) if (Input.GetMouseButtonDown(1)) { ToggleMouseLock(); } else if (isCursorLocked) { CameraMovement(); RaycastHit val = default(RaycastHit); if (Input.GetMouseButtonDown(0) && Physics.Raycast(((Component)sceneCamera).transform.position, ((Component)sceneCamera).transform.forward, ref val, 100f)) { SelectTransform(((RaycastHit)(ref val)).transform); } } if ((Object)(object)cameraPositionText != (Object)null) { Vector3 position = ((Component)sceneCamera).transform.position; ((TMP_Text)cameraPositionText).text = $"Camera Position: X: {position.x:F2}, Y: {position.y:F2}, Z: {position.z:F2}"; } } private void LateUpdate() { if ((Object)(object)selectedTransform == (Object)null && (Object)(object)currentOutline != (Object)null) { Deselect(); } else if ((Object)(object)selectedTransform != (Object)null && (Object)(object)previewCamera != (Object)null && ((Behaviour)previewCamera).enabled) { UpdatePreviewCameraPosition(); } } private void UpdatePreviewCameraPosition() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) Vector3 val = selectedTransform.position; float num = 1f; Renderer componentInChildren = ((Component)selectedTransform).GetComponentInChildren<Renderer>(); if ((Object)(object)componentInChildren != (Object)null) { Bounds bounds = componentInChildren.bounds; val = ((Bounds)(ref bounds)).center; float[] array = new float[3]; bounds = componentInChildren.bounds; array[0] = ((Bounds)(ref bounds)).extents.x; bounds = componentInChildren.bounds; array[1] = ((Bounds)(ref bounds)).extents.y; bounds = componentInChildren.bounds; array[2] = ((Bounds)(ref bounds)).extents.z; num = Mathf.Max(array); } float num2 = Mathf.Clamp(num * 3f, 2f, 15f); Vector3 val2 = default(Vector3); ((Vector3)(ref val2))..ctor(0f, num * 0.5f, 0f - num2); ((Component)previewCamera).transform.position = val + val2; ((Component)previewCamera).transform.LookAt(val); } private void CameraMovement() { //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) sceneCameraX += Input.GetAxis("Mouse X") * sceneCameraSensitivity * Time.deltaTime; sceneCameraY -= Input.GetAxis("Mouse Y") * sceneCameraSensitivity * Time.deltaTime; sceneCameraY = Mathf.Clamp(sceneCameraY, -90f, 90f); ((Component)sceneCamera).transform.rotation = Quaternion.Euler(sceneCameraY, sceneCameraX, 0f); float axis = Input.GetAxis("Horizontal"); float axis2 = Input.GetAxis("Vertical"); Vector3 forward = ((Component)sceneCamera).transform.forward; Vector3 right = ((Component)sceneCamera).transform.right; forward.y = 0f; right.y = 0f; ((Vector3)(ref forward)).Normalize(); ((Vector3)(ref right)).Normalize(); float num = 0f; if (Input.GetKey((KeyCode)32)) { num += 1f; } if (Input.GetKey((KeyCode)306)) { num -= 1f; } Vector3 val = forward * axis2 + right * axis + Vector3.up * num; if (Input.GetKey((KeyCode)304)) { val *= 2f; } Transform transform = ((Component)sceneCamera).transform; transform.position += val * sceneCameraSpeed * Time.deltaTime; } private void ToggleMouseLock() { isCursorLocked = !isCursorLocked; Cursor.lockState = (CursorLockMode)(isCursorLocked ? 1 : 0); Cursor.visible = !isCursorLocked; } private void SelectTransform(Transform target) { if ((Object)(object)currentOutline != (Object)null) { Object.Destroy((Object)(object)currentOutline); } selectedTransform = target; BoxCollider val = default(BoxCollider); CapsuleCollider val2 = default(CapsuleCollider); MeshCollider val3 = default(MeshCollider); if (((Component)target).TryGetComponent<BoxCollider>(ref val)) { currentOutline = ((Component)target).gameObject.AddComponent<BoxColliderOutline>(); } else if (((Component)target).TryGetComponent<CapsuleCollider>(ref val2)) { currentOutline = ((Component)target).gameObject.AddComponent<CapsuleColliderOutline>(); } else if (((Component)target).TryGetComponent<MeshCollider>(ref val3)) { currentOutline = ((Component)target).gameObject.AddComponent<MeshColliderOutline>(); } previewUIObject.SetActive(true); ((Behaviour)previewCamera).enabled = true; ClearDynamicCards(); CreateDynamicCards(); } private void SelectParent() { if ((Object)(object)selectedTransform != (Object)null && (Object)(object)selectedTransform.parent != (Object)null) { SelectTransform(selectedTransform.parent); } } private void SelectChild() { if ((Object)(object)selectedTransform != (Object)null && selectedTransform.childCount > 0) { SelectTransform(selectedTransform.GetChild(0)); } } private void CreateDynamicCards() { //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Expected O, but got Unknown //IL_0164: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Expected O, but got Unknown //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: Unknown result type (might be due to invalid IL or missing references) //IL_03ab: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Unknown result type (might be due to invalid IL or missing references) //IL_03fa: Unknown result type (might be due to invalid IL or missing references) //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_053a: Unknown result type (might be due to invalid IL or missing references) //IL_0541: Unknown result type (might be due to invalid IL or missing references) //IL_0546: Unknown result type (might be due to invalid IL or missing references) //IL_054a: Unknown result type (might be due to invalid IL or missing references) //IL_0551: Unknown result type (might be due to invalid IL or missing references) //IL_0558: Unknown result type (might be due to invalid IL or missing references) //IL_055f: Unknown result type (might be due to invalid IL or missing references) //IL_0566: Unknown result type (might be due to invalid IL or missing references) //IL_056b: Unknown result type (might be due to invalid IL or missing references) //IL_056f: Unknown result type (might be due to invalid IL or missing references) //IL_0584: Unknown result type (might be due to invalid IL or missing references) //IL_0589: Unknown result type (might be due to invalid IL or missing references) //IL_05a8: Unknown result type (might be due to invalid IL or missing references) //IL_05af: Unknown result type (might be due to invalid IL or missing references) //IL_05b4: Unknown result type (might be due to invalid IL or missing references) //IL_05b8: Unknown result type (might be due to invalid IL or missing references) //IL_0608: Unknown result type (might be due to invalid IL or missing references) //IL_0624: Unknown result type (might be due to invalid IL or missing references) //IL_08aa: Unknown result type (might be due to invalid IL or missing references) //IL_08b8: Unknown result type (might be due to invalid IL or missing references) //IL_0ce8: Unknown result type (might be due to invalid IL or missing references) //IL_0da7: Unknown result type (might be due to invalid IL or missing references) //IL_0e5a: Unknown result type (might be due to invalid IL or missing references) //IL_0eb8: Unknown result type (might be due to invalid IL or missing references) //IL_0edb: Unknown result type (might be due to invalid IL or missing references) //IL_0ee0: Unknown result type (might be due to invalid IL or missing references) //IL_0ef1: Unknown result type (might be due to invalid IL or missing references) //IL_0ef8: Unknown result type (might be due to invalid IL or missing references) dynamicCards.Add(((Component)EditorCard_SingleValue.Create(cardContent.transform, ((object)((Component)selectedTransform).gameObject).GetType().Name, ((Object)((Component)selectedTransform).gameObject).name, 215)).gameObject); int layer = ((Component)selectedTransform).gameObject.layer; dynamicCards.Add(((Component)EditorCard_SingleValue.Create(cardContent.transform, "Layer", $"{LayerMask.LayerToName(layer)} ({layer})")).gameObject); if ((Object)(object)selectedTransform.parent != (Object)null) { Button val = EditorCardBuilder.CreateCardButton(cardContent.transform, "Select parent: " + ((Object)((Component)selectedTransform.parent).gameObject).name); ((UnityEvent)val.onClick).AddListener(new UnityAction(SelectParent)); dynamicCards.Add(((Component)val).gameObject); } if (selectedTransform.childCount > 0) { Button val2 = EditorCardBuilder.CreateCardButton(cardContent.transform, "Select child: " + ((Object)((Component)selectedTransform.GetChild(0)).gameObject).name); ((UnityEvent)val2.onClick).AddListener(new UnityAction(SelectChild)); dynamicCards.Add(((Component)val2).gameObject); } Component[] components = ((Component)selectedTransform).GetComponents<Component>(); Component[] array = components; foreach (Component val3 in array) { if ((Object)(object)val3 == (Object)null) { continue; } Component val4 = val3; Component val5 = val4; Transform val6 = (Transform)(object)((val5 is Transform) ? val5 : null); if (val6 == null) { BoxCollider val7 = (BoxCollider)(object)((val5 is BoxCollider) ? val5 : null); if (val7 == null) { CapsuleCollider val8 = (CapsuleCollider)(object)((val5 is CapsuleCollider) ? val5 : null); if (val8 == null) { MeshCollider val9 = (MeshCollider)(object)((val5 is MeshCollider) ? val5 : null); if (val9 == null) { Rigidbody val10 = (Rigidbody)(object)((val5 is Rigidbody) ? val5 : null); if (val10 == null) { Animator val11 = (Animator)(object)((val5 is Animator) ? val5 : null); if (val11 == null) { CharacterController val12 = (CharacterController)(object)((val5 is CharacterController) ? val5 : null); if (val12 == null) { AudioSource val13 = (AudioSource)(object)((val5 is AudioSource) ? val5 : null); if (val13 == null) { BuildableInfo val14 = (BuildableInfo)(object)((val5 is BuildableInfo) ? val5 : null); if (val14 == null) { PlayerObjectController val15 = (PlayerObjectController)(object)((val5 is PlayerObjectController) ? val5 : null); if (val15 == null) { PlayerPermissions val16 = (PlayerPermissions)(object)((val5 is PlayerPermissions) ? val5 : null); if (val16 == null) { PlayerNetwork val17 = (PlayerNetwork)(object)((val5 is PlayerNetwork) ? val5 : null); if (val17 == null) { InteractableContainer val18 = (InteractableContainer)(object)((val5 is InteractableContainer) ? val5 : null); if (val18 == null) { CardboardBaler val19 = (CardboardBaler)(object)((val5 is CardboardBaler) ? val5 : null); if (val19 == null) { HighlightEffect val20 = (HighlightEffect)(object)((val5 is HighlightEffect) ? val5 : null); if (val20 == null) { PlayerCrouch val21 = (PlayerCrouch)(object)((val5 is PlayerCrouch) ? val5 : null); if (val21 == null) { FirstPersonTransform val22 = (FirstPersonTransform)(object)((val5 is FirstPersonTransform) ? val5 : null); if (val22 == null) { PlayerSyncCharacter val23 = (PlayerSyncCharacter)(object)((val5 is PlayerSyncCharacter) ? val5 : null); if (val23 == null) { MultiplayerInitialization val24 = (MultiplayerInitialization)(object)((val5 is MultiplayerInitialization) ? val5 : null); if (val24 == null) { NPC_Info val25 = (NPC_Info)(object)((val5 is NPC_Info) ? val5 : null); if (val25 == null) { NPC_Speed val26 = (NPC_Speed)(object)((val5 is NPC_Speed) ? val5 : null); if (val26 == null) { NPC_Manager val27 = (NPC_Manager)(object)((val5 is NPC_Manager) ? val5 : null); if (val27 == null) { FirstPersonController val28 = (FirstPersonController)(object)((val5 is FirstPersonController) ? val5 : null); if (val28 == null) { NavMeshObstacle val29 = (NavMeshObstacle)(object)((val5 is NavMeshObstacle) ? val5 : null); if (val29 == null) { NetworkIdentity val30 = (NetworkIdentity)(object)((val5 is NetworkIdentity) ? val5 : null); if (val30 == null) { BoxColliderOutline boxColliderOutline = val5 as BoxColliderOutline; if (boxColliderOutline != null) { continue; } MeshColliderOutline meshColliderOutline = val5 as MeshColliderOutline; if (meshColliderOutline == null) { CapsuleColliderOutline capsuleColliderOutline = val5 as CapsuleColliderOutline; if (capsuleColliderOutline == null) { dynamicCards.Add(((Component)EditorCard_String.Create(cardContent.transform, ((object)val3).GetType().Name)).gameObject); } } } else { dynamicCards.Add(((Component)EditorCard_Mirror_NetworkIdentity.Create(cardContent.transform, "Network Identity", val30.isServerOnly, val30.assetId, val30.netId, val30.sceneId)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_AIModule_NavMeshObstacle.Create(cardContent.transform, "NavMeshObstacle", val29.height, val29.radius, val29.velocity, val29.carving, val29.carveOnlyStationary, val29.carvingMoveThreshold, val29.carvingTimeToStationary, ((object)val29.shape/*cast due to .constrained prefix*/).ToString(), val29.center, val29.size)).gameObject); } } else { int num = LayerMask.op_Implicit(val28.GroundLayers); dynamicCards.Add(((Component)EditorCard_StarterAssets_FirstPersonController.Create(cardContent.transform, "FirstPersonController (Script)", val28.CrouchSpeed, val28.MoveSpeed, val28.SprintSpeed, val28.airSpeed, val28.SpeedChangeRate, val28.JumpHeight, val28.Gravity, val28.JumpTimeout, val28.FallTimeout, val28.Grounded, val28.GroundedOffset, val28.GroundedRadius, $"{LayerMask.LayerToName(num)} ({num})", val28.allowPlayerInput, val28.isTeleporting, val28.inEvent, val28.isBeingPushed, val28.inCameraEvent, val28.pushDirection, val28.alwaysRun, val28.inVehicle, val28.isIndoors, val28.IsCrouching)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_NPCManager.Create(cardContent.transform, "NPC_Manager (Script)", val27.numberOfHiredEmployees, val27.rerollTimes, val27.alreadySetRerolls, val27.rerollsPerDay, val27.storageDistanceReferencePoint, val27.currentHappinessLevel, val27.offensiveNPCs, val27.maxDummyNPCs, val27.interruptBoxRecycling, val27.maxEmployees, val27.extraEmployeeSpeedFactor, val27.extraCheckoutMoney, val27.employeeItemPlaceWait, val27.productCheckoutWait, val27.minSelfCheckoutWait, val27.maxSelfCheckoutWait, val27.surveillanceFactor, val27.employeeRecycleBoxes, val27.selfcheckoutExtraProductsFromPerk, val27.closestRecyclePerk, val27.employeesOnRiot, val27.mainShelfUpdateIsRunning, val27.mainUpdateIsBeingCalculated, val27.mainManufacturingShelfUpdateIsRunning, val27.mainManufacturingUpdateIsBeingCalculated, val27.initialEmployeesSpawnIsFinished, val27.badWeatherDay, val27.orderingExtraCrashOnBadWeather)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_NPCSpeed.Create(cardContent.transform, "NPC_Speed (Script)", val26.velocity)).gameObject); } } else { List<GameObject> list = dynamicCards; Transform transform = cardContent.transform; int nPCID = val25.NPCID; bool isEmployee = val25.isEmployee; bool isCustomer = val25.isCustomer; int boxProductID = val25.boxProductID; int boxNumberOfProducts = val25.boxNumberOfProducts; string nPCName = val25.NPCName; int hatID = val25.hatID; string mBoxCombinableData = val25.mBoxCombinableData; int state = val25.state; bool isAThief = val25.isAThief; bool alreadyGaveMoney = val25.alreadyGaveMoney; bool hasComplainedAboutFilth = val25.hasComplainedAboutFilth; bool hasSlipped = val25.hasSlipped; int shelfThatHasTheItem = val25.shelfThatHasTheItem; bool surveillanceChecked = val25.surveillanceChecked; bool isBystander = val25.isBystander; int taskPriority = val25.taskPriority; float productItemPlaceWait = val25.productItemPlaceWait; int equippedItem = val25.equippedItem; bool playingCoroutine = val25.playingCoroutine; int thiefProductsNumber = val25.thiefProductsNumber; bool thiefFleeing = val25.thiefFleeing; bool thiefCanBeHitBySecurity = val25.thiefCanBeHitBySecurity; bool thiefAssignedChaser = val25.thiefAssignedChaser; GameObject currentChasedThiefOBJ = val25.currentChasedThiefOBJ; list.Add(((Component)EditorCard_Custom_NPCInfo.Create(transform, "NPC_Info (Script)", nPCID, isEmployee, isCustomer, boxProductID, boxNumberOfProducts, nPCName, hatID, mBoxCombinableData, state, isAThief, alreadyGaveMoney, hasComplainedAboutFilth, hasSlipped, shelfThatHasTheItem, surveillanceChecked, isBystander, taskPriority, productItemPlaceWait, equippedItem, playingCoroutine, thiefProductsNumber, thiefFleeing, thiefCanBeHitBySecurity, thiefAssignedChaser, ((currentChasedThiefOBJ != null) ? ((Object)currentChasedThiefOBJ).name : null) ?? "Null", val25.chasingThief, val25.chaserUpdatingPathing, val25.employeeAssignedCheckoutIndex, val25.currentFreeStorageIndex, val25.selfcheckoutAssigned, val25.selfcheckoutIndex, val25.isCurrentlySelfcheckouting, val25.hasCheckedTemperature, val25.placingProducts, val25.currentCheckoutIndex, val25.currentQueueNumber, val25.carryingProductsPrice, val25.paidForItsBelongings, val25.numberOfProductsCarried, val25.syncBoxProductID, val25.customerOrderNumber, val25.customerOrderFinalPrice, val25.salary, val25.cashierValue, val25.restockerValue, val25.storageValue, val25.securityValue, val25.technicianValue, val25.orderingValue, val25.manufacturingValue, val25.cashierExperience, val25.restockerExperience, val25.storageExperience, val25.securityExperience, val25.technicianExperience, val25.orderingExperience, val25.manufacturingExperience, val25.cashierLevel, val25.restockerLevel, val25.storageLevel, val25.securityLevel, val25.technicianLevel, val25.orderingLevel, val25.manufacturingLevel, val25.employeeDismissed, val25.packagingAssignedOrderIndex, val25.packagingAssignedOrderData, val25.xzSpeed)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_MultiplayerInitialization.Create(cardContent.transform, "MultiplayerInitialization (Script)", ((NetworkBehaviour)val24).isLocalPlayer)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_PlayerSyncCharacter.Create(cardContent.transform, "PlayerSyncCharacter (Script)", val23.headAngle, val23.inVehicle, val23.syncedProductID, val23.syncedNumberOfProducts, val23.broomSkin, val23.characterNumber.ToString(), ((Object)val23.characterOBJ).name, ((Object)val23.headOBJ).name, val23.playerVelocity)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_String.Create(cardContent.transform, "FirstPersonTransform (Script)")).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_String.Create(cardContent.transform, "PlayerCrouch (Script)")).gameObject); } } else { int num2 = LayerMask.op_Implicit(val20.camerasLayerMask); int num3 = LayerMask.op_Implicit(val20.effectGroupLayer); dynamicCards.Add(((Component)EditorCard_Custom_HighlightEffect.Create(cardContent.transform, "HighlightEffect (Script)", val20.profileSync, $"{LayerMask.LayerToName(num2)} ({num2})", $"{LayerMask.LayerToName(num3)} ({num3})", val20.effectNameFilter, val20.highlighted, val20.outline, val20.outlineWidth, val20.glow, val20.glowWidth, val20.isVisible)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_CardboardBaler.Create(cardContent.transform, "CardboardBaler (Script)", val19.numberOfBoxesInside, val19.isBroken, val19.brokenDay)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_InteractableContainer.Create(cardContent.transform, "InteractableContainer (Script)", val18.isStorageShelf, val18.isManufacturing)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_PlayerNetwork.Create(cardContent.transform, "PlayerNetwork (Script)", val17.equippedItem, val17.characterID, val17.hatID, val17.isCrouching)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_PlayerPermissions.Create(cardContent.transform, "PlayerPermissions (Script)", val16.RequestGP(), val16.RequestMP(), val16.RequestCP(), val16.RequestRP())).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_PlayerObjectController.Create(cardContent.transform, "PlayerObjectController (Script)", val15.ConnectionID, val15.PlayerIdNumber, val15.PlayerSteamID, val15.PlayerName, val15.PlayerSteamIDString)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Custom_BuildableInfo.Create(cardContent.transform, "BuildableInfo (Script)", val14.decorationID, val14.cost, val14.minY, val14.maxY, val14.isCool, val14.energyCost, val14.energyWorkingHours, val14.employeeHappiness)).gameObject); } } else { List<GameObject> list2 = dynamicCards; Transform transform2 = cardContent.transform; AudioClip clip = val13.clip; list2.Add(((Component)EditorCard_AudioSource.Create(transform2, "Audio Source", ((clip != null) ? ((Object)clip).name : null) ?? "None", val13.mute, val13.bypassEffects, val13.bypassListenerEffects, val13.bypassReverbZones, val13.playOnAwake, val13.loop, val13.priority, val13.volume, val13.pitch, val13.panStereo, val13.spatialBlend, val13.reverbZoneMix, val13.isPlaying)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_CharacterController.Create(cardContent.transform, "Character Controller", val12.slopeLimit, val12.stepOffset, val12.skinWidth, val12.minMoveDistance, val12.center, val12.radius, val12.height, val12.isGrounded, val12.velocity)).gameObject); } } else { List<GameObject> list3 = dynamicCards; Transform transform3 = cardContent.transform; bool isOptimizable = val11.isOptimizable; bool isHuman = val11.isHuman; bool hasRootMotion = val11.hasRootMotion; float humanScale = val11.humanScale; bool isInitialized = val11.isInitialized; Vector3 deltaPosition = val11.deltaPosition; Quaternion val31 = val11.deltaRotation; Vector3 eulerAngles = ((Quaternion)(ref val31)).eulerAngles; Vector3 velocity = val11.velocity; Vector3 angularVelocity = val11.angularVelocity; Vector3 rootPosition = val11.rootPosition; val31 = val11.rootRotation; Vector3 eulerAngles2 = ((Quaternion)(ref val31)).eulerAngles; bool applyRootMotion = val11.applyRootMotion; bool animatePhysics = val11.animatePhysics; string? updateMode = ((object)val11.updateMode/*cast due to .constrained prefix*/).ToString(); bool hasTransformHierarchy = val11.hasTransformHierarchy; float gravityWeight = val11.gravityWeight; Vector3 bodyPosition = val11.bodyPosition; val31 = val11.bodyRotation; list3.Add(((Component)EditorCard_Animator.Create(transform3, "Animator", isOptimizable, isHuman, hasRootMotion, humanScale, isInitialized, deltaPosition, eulerAngles, velocity, angularVelocity, rootPosition, eulerAngles2, applyRootMotion, animatePhysics, updateMode, hasTransformHierarchy, gravityWeight, bodyPosition, ((Quaternion)(ref val31)).eulerAngles)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Rigidbody.Create(cardContent.transform, "Rigidbody", val10.mass, val10.drag, val10.angularDrag, val10.automaticCenterOfMass, val10.automaticInertiaTensor, val10.useGravity, val10.isKinematic)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_MeshCollider.Create(cardContent.transform, "Mesh Collider", ((Collider)val9).isTrigger, ((Collider)val9).providesContacts)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_CapsuleCollider.Create(cardContent.transform, "Capsule Collider", ((Collider)val8).isTrigger, ((Collider)val8).providesContacts, val8.center, val8.radius, val8.height)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_BoxCollider.Create(cardContent.transform, "Box Collider", ((Collider)val7).isTrigger, ((Collider)val7).providesContacts, val7.center, val7.size)).gameObject); } } else { dynamicCards.Add(((Component)EditorCard_Transform.Create(cardContent.transform, "Transform", val6.position, val6.eulerAngles, val6.localScale, selectedTransform)).gameObject); } } } private void ClearDynamicCards() { foreach (GameObject dynamicCard in dynamicCards) { if ((Object)(object)dynamicCard != (Object)null) { Object.Destroy((Object)(object)dynamicCard); } } dynamicCards.Clear(); } private void Deselect() { selectedTransform = null; if ((Object)(object)currentOutline != (Object)null) { Object.Destroy((Object)(object)currentOutline); currentOutline = null; } previewUIObject.SetActive(false); ((Behaviour)previewCamera).enabled = false; ClearDynamicCards(); } } } namespace ModdingHelper.CustomEditor { internal class ColorThemes { internal static Color panelColor = new Color(0.078f, 0.078f, 0.078f); internal static Color transparent = new Color(0f, 0f, 0f, 0f); internal static Color buttonColor = new Color(0.317f, 0.317f, 0.317f); internal static Color buttonTextColor = Color.white; internal static Color viewportColor = new Color(0.05f, 0.05f, 0.05f, 0.5f); internal static Color cardBackgroundColor = new Color(0.243f, 0.243f, 0.243f); internal static Color cardTitleTextColor = Color.white; internal static Color cardBodyTextColor = new Color(0.768f, 0.768f, 0.768f); internal static Color inactiveGameObjectTextColor = new Color(0.5f, 0.5f, 0.5f); internal static Color gameUIcolor = new Color(0.58f, 0.318f, 0.973f); } } namespace ModdingHelper.CustomEditor.EditorCards { internal abstract class EditorCardBase : MonoBehaviour { protected TextMeshProUGUI titleText; public virtual void SetTitle(string title) { if ((Object)(object)titleText != (Object)null) { ((TMP_Text)titleText).text = title; } } protected static void UpdateVectorTexts(TextMeshProUGUI[] texts, Vector3 vector) { if (texts != null && texts.Length >= 3) { if ((Object)(object)texts[0] != (Object)null) { ((TMP_Text)texts[0]).text = vector.x.ToString("F2"); } if ((Object)(object)texts[1] != (Object)null) { ((TMP_Text)texts[1]).text = vector.y.ToString("F2"); } if ((Object)(object)texts[2] != (Object)null) { ((TMP_Text)texts[2]).text = vector.z.ToString("F2"); } } } protected static void UpdateBoolText(TextMeshProUGUI text, bool value) { if ((Object)(object)text != (Object)null) { ((TMP_Text)text).text = (value ? "X" : ""); } } protected static void UpdateStringText(TextMeshProUGUI text, string s) { if ((Object)(object)text != (Object)null) { ((TMP_Text)text).text = s; } } } internal static class EditorCardBuilder { public static (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) CreateBaseCard(Transform contentParent, string cardName, string title) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Expected O, but got Unknown //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Expected O, but got Unknown GameObject val = new GameObject(cardName); val.transform.SetParent(contentParent, false); Image val2 = val.AddComponent<Image>(); ((Graphic)val2).color = ColorThemes.cardBackgroundColor; VerticalLayoutGroup val3 = val.AddComponent<VerticalLayoutGroup>(); ((LayoutGroup)val3).padding = new RectOffset(10, 10, 10, 10); ((HorizontalOrVerticalLayoutGroup)val3).spacing = 6f; ((HorizontalOrVerticalLayoutGroup)val3).childControlWidth = true; LayoutElement val4 = val.AddComponent<LayoutElement>(); val4.preferredWidth = 330f; val4.flexibleHeight = 0f; GameObject val5 = new GameObject("Text_Title"); val5.transform.SetParent(val.transform, false); TextMeshProUGUI val6 = val5.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val6).text = title; ((TMP_Text)val6).fontSize = 15f; ((TMP_Text)val6).alignment = (TextAlignmentOptions)513; ((Graphic)val6).color = ColorThemes.cardTitleTextColor; GameObject val7 = new GameObject("Body_VerticalLayout"); val7.transform.SetParent(val.transform, false); VerticalLayoutGroup val8 = val7.AddComponent<VerticalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val8).spacing = 2f; ((HorizontalOrVerticalLayoutGroup)val8).childControlWidth = true; return (cardObj: val, bodyContainer: val7.transform, titleTMP: val6); } public static TextMeshProUGUI CreateValueRow(Transform parent, string labelName) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Expected O, but got Unknown //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Expected O, but got Unknown //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("Row_Value_" + labelName); val.transform.SetParent(parent, false); HorizontalLayoutGroup val2 = val.AddComponent<HorizontalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val2).spacing = 4f; ((HorizontalOrVerticalLayoutGroup)val2).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val2).childForceExpandWidth = false; GameObject val3 = new GameObject("Text_Label_" + labelName); val3.transform.SetParent(val.transform, false); TextMeshProUGUI val4 = val3.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val4).text = labelName; ((TMP_Text)val4).fontSize = 13f; ((Graphic)val4).color = ColorThemes.cardBodyTextColor; ((TMP_Text)val4).alignment = (TextAlignmentOptions)513; LayoutElement val5 = val3.AddComponent<LayoutElement>(); val5.flexibleWidth = 1f; GameObject val6 = new GameObject("Field_" + labelName); val6.transform.SetParent(val.transform, false); Image val7 = val6.AddComponent<Image>(); ((Graphic)val7).color = ColorThemes.panelColor; LayoutElement val8 = val6.AddComponent<LayoutElement>(); val8.preferredWidth = 170f; val8.flexibleWidth = 0f; val8.preferredHeight = 20f; GameObject val9 = new GameObject("Text_" + labelName); val9.transform.SetParent(val6.transform, false); RectTransform val10 = val9.AddComponent<RectTransform>(); val10.anchorMin = Vector2.zero; val10.anchorMax = Vector2.one; val10.sizeDelta = Vector2.zero; TextMeshProUGUI val11 = val9.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val11).fontSize = 12f; ((Graphic)val11).color = ColorThemes.cardTitleTextColor; ((TMP_Text)val11).alignment = (TextAlignmentOptions)513; ((TMP_Text)val11).margin = new Vector4(4f, 0f, 0f, 0f); return val11; } public static TextMeshProUGUI CreateBoolRow(Transform parent, string labelName) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Expected O, but got Unknown //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Expected O, but got Unknown //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("Row_Bool_" + labelName); val.transform.SetParent(parent, false); HorizontalLayoutGroup val2 = val.AddComponent<HorizontalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val2).spacing = 4f; ((HorizontalOrVerticalLayoutGroup)val2).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val2).childForceExpandWidth = false; GameObject val3 = new GameObject("Text_Label_" + labelName); val3.transform.SetParent(val.transform, false); TextMeshProUGUI val4 = val3.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val4).text = labelName; ((TMP_Text)val4).fontSize = 13f; ((Graphic)val4).color = ColorThemes.cardBodyTextColor; ((TMP_Text)val4).alignment = (TextAlignmentOptions)513; LayoutElement val5 = val3.AddComponent<LayoutElement>(); val5.flexibleWidth = 1f; GameObject val6 = new GameObject("Box_" + labelName); val6.transform.SetParent(val.transform, false); Image val7 = val6.AddComponent<Image>(); ((Graphic)val7).color = ColorThemes.panelColor; LayoutElement val8 = val6.AddComponent<LayoutElement>(); val8.preferredWidth = 20f; val8.preferredHeight = 20f; GameObject val9 = new GameObject("Text_X"); val9.transform.SetParent(val6.transform, false); RectTransform val10 = val9.AddComponent<RectTransform>(); val10.anchorMin = Vector2.zero; val10.anchorMax = Vector2.one; val10.sizeDelta = Vector2.zero; TextMeshProUGUI val11 = val9.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val11).fontSize = 12f; ((TMP_Text)val11).fontStyle = (FontStyles)1; ((Graphic)val11).color = ColorThemes.cardTitleTextColor; ((TMP_Text)val11).alignment = (TextAlignmentOptions)514; return val11; } public static TextMeshProUGUI[] CreateVectorRow(Transform parent, string labelName) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Expected O, but got Unknown //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Expected O, but got Unknown //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Expected O, but got Unknown //IL_01fc: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_0240: Expected O, but got Unknown //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02cb: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("Row_" + labelName); val.transform.SetParent(parent, false); HorizontalLayoutGroup val2 = val.AddComponent<HorizontalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val2).spacing = 4f; ((HorizontalOrVerticalLayoutGroup)val2).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val2).childForceExpandWidth = false; GameObject val3 = new GameObject("Text_Label_" + labelName); val3.transform.SetParent(val.transform, false); TextMeshProUGUI val4 = val3.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val4).text = labelName; ((TMP_Text)val4).fontSize = 13f; ((Graphic)val4).color = ColorThemes.cardBodyTextColor; ((TMP_Text)val4).alignment = (TextAlignmentOptions)513; LayoutElement val5 = val3.AddComponent<LayoutElement>(); val5.preferredWidth = 65f; TextMeshProUGUI[] array = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; string[] array2 = new string[3] { "X", "Y", "Z" }; for (int i = 0; i < 3; i++) { GameObject val6 = new GameObject("Group_" + array2[i]); val6.transform.SetParent(val.transform, false); HorizontalLayoutGroup val7 = val6.AddComponent<HorizontalLayoutGroup>(); ((HorizontalOrVerticalLayoutGroup)val7).spacing = 3f; ((HorizontalOrVerticalLayoutGroup)val7).childControlWidth = true; ((HorizontalOrVerticalLayoutGroup)val7).childForceExpandWidth = false; LayoutElement val8 = val6.AddComponent<LayoutElement>(); val8.flexibleWidth = 1f; GameObject val9 = new GameObject("Label_" + array2[i]); val9.transform.SetParent(val6.transform, false); TextMeshProUGUI val10 = val9.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val10).text = array2[i]; ((TMP_Text)val10).fontSize = 12f; ((Graphic)val10).color = ColorThemes.cardBodyTextColor; ((TMP_Text)val10).alignment = (TextAlignmentOptions)514; LayoutElement val11 = val9.AddComponent<LayoutElement>(); val11.preferredWidth = 12f; GameObject val12 = new GameObject("Field_" + array2[i]); val12.transform.SetParent(val6.transform, false); Image val13 = val12.AddComponent<Image>(); ((Graphic)val13).color = ColorThemes.panelColor; LayoutElement val14 = val12.AddComponent<LayoutElement>(); val14.flexibleWidth = 1f; val14.preferredHeight = 20f; GameObject val15 = new GameObject("Text_" + array2[i]); val15.transform.SetParent(val12.transform, false); RectTransform val16 = val15.AddComponent<RectTransform>(); val16.anchorMin = Vector2.zero; val16.anchorMax = Vector2.one; val16.sizeDelta = Vector2.zero; TextMeshProUGUI val17 = val15.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val17).fontSize = 12f; ((Graphic)val17).color = ColorThemes.cardTitleTextColor; ((TMP_Text)val17).alignment = (TextAlignmentOptions)513; ((TMP_Text)val17).margin = new Vector4(4f, 0f, 0f, 0f); array[i] = val17; } return array; } public static Button CreateCardButton(Transform parent, string buttonText) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Expected O, but got Unknown //IL_00ca: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("Button_" + buttonText); val.transform.SetParent(parent, false); Image val2 = val.AddComponent<Image>(); ((Graphic)val2).color = ColorThemes.gameUIcolor; VerticalLayoutGroup val3 = val.AddComponent<VerticalLayoutGroup>(); ((LayoutGroup)val3).padding = new RectOffset(10, 10, 10, 10); ((HorizontalOrVerticalLayoutGroup)val3).spacing = 6f; ((HorizontalOrVerticalLayoutGroup)val3).childControlWidth = true; LayoutElement val4 = val.AddComponent<LayoutElement>(); val4.preferredWidth = 330f; val4.flexibleHeight = 0f; Button result = val.AddComponent<Button>(); GameObject val5 = new GameObject("Text"); val5.transform.SetParent(val.transform, false); TextMeshProUGUI val6 = val5.AddComponent<TextMeshProUGUI>(); ((TMP_Text)val6).text = buttonText; ((TMP_Text)val6).fontSize = 13f; ((Graphic)val6).color = ColorThemes.buttonTextColor; ((TMP_Text)val6).alignment = (TextAlignmentOptions)514; return result; } } internal class EditorCard_AIModule_NavMeshObstacle : EditorCardBase { private TextMeshProUGUI heightText; private TextMeshProUGUI radiusText; private TextMeshProUGUI[] velocityTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI carvingText; private TextMeshProUGUI carveOnlyStationaryText; private TextMeshProUGUI carvingMoveThresholdText; private TextMeshProUGUI carvingTimeToStationaryText; private TextMeshProUGUI shapeText; private TextMeshProUGUI[] centerTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] sizeTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; public void Initialize(TextMeshProUGUI titleText, TextMeshProUGUI heightText, TextMeshProUGUI radiusText, TextMeshProUGUI[] velocityTexts, TextMeshProUGUI carvingText, TextMeshProUGUI carveOnlyStationaryText, TextMeshProUGUI carvingMoveThresholdText, TextMeshProUGUI carvingTimeToStationaryText, TextMeshProUGUI shapeText, TextMeshProUGUI[] centerTexts, TextMeshProUGUI[] sizeTexts) { base.titleText = titleText; this.heightText = heightText; this.radiusText = radiusText; this.velocityTexts = velocityTexts; this.carvingText = carvingText; this.carveOnlyStationaryText = carveOnlyStationaryText; this.carvingMoveThresholdText = carvingMoveThresholdText; this.carvingTimeToStationaryText = carvingTimeToStationaryText; this.shapeText = shapeText; this.centerTexts = centerTexts; this.sizeTexts = sizeTexts; } public void SetHeight(float f) { EditorCardBase.UpdateStringText(heightText, f.ToString("F2")); } public void SetRadius(float f) { EditorCardBase.UpdateStringText(radiusText, f.ToString("F2")); } public void SetVelocity(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(velocityTexts, v); } public void SetCarving(bool b) { EditorCardBase.UpdateBoolText(carvingText, b); } public void SetCarveOnlyStationary(bool b) { EditorCardBase.UpdateBoolText(carveOnlyStationaryText, b); } public void SetCarvingMoveThreshold(float f) { EditorCardBase.UpdateStringText(carvingMoveThresholdText, f.ToString("F2")); } public void SetCarvingTimeToStationary(float f) { EditorCardBase.UpdateStringText(carvingTimeToStationaryText, f.ToString("F2")); } public void SetShape(string s) { EditorCardBase.UpdateStringText(shapeText, s.ToString()); } public void SetCenter(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(centerTexts, v); } public void SetSize(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(sizeTexts, v); } public void SetValues(float height, float radius, Vector3 velocity, bool carving, bool carveOnlyStationary, float carvingMoveThreshold, float carvingTimeToStationary, string shape, Vector3 center, Vector3 size) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) SetHeight(height); SetRadius(radius); SetVelocity(velocity); SetCarving(carving); SetCarveOnlyStationary(carveOnlyStationary); SetCarvingMoveThreshold(carvingMoveThreshold); SetCarvingTimeToStationary(carvingTimeToStationary); SetShape(shape); SetCenter(center); SetSize(size); } public static EditorCard_AIModule_NavMeshObstacle Create(Transform contentParent, string title, float height, float radius, Vector3 velocity, bool carving, bool carveOnlyStationary, float carvingMoveThreshold, float carvingTimeToStationary, string shape, Vector3 center, Vector3 size) { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) tuple = EditorCardBuilder.CreateBaseCard(contentParent, "Card_Custom_NavMeshObstacle", title); GameObject item = tuple.cardObj; Transform item2 = tuple.bodyContainer; TextMeshProUGUI item3 = tuple.titleTMP; TextMeshProUGUI val = EditorCardBuilder.CreateValueRow(item2, "Height"); TextMeshProUGUI val2 = EditorCardBuilder.CreateValueRow(item2, "Radius"); TextMeshProUGUI[] array = EditorCardBuilder.CreateVectorRow(item2, "Velocity"); TextMeshProUGUI val3 = EditorCardBuilder.CreateBoolRow(item2, "Carving"); TextMeshProUGUI val4 = EditorCardBuilder.CreateBoolRow(item2, "Carve Only Stationary"); TextMeshProUGUI val5 = EditorCardBuilder.CreateValueRow(item2, "Carving Move Threshold"); TextMeshProUGUI val6 = EditorCardBuilder.CreateValueRow(item2, "Carving Time To Stationary"); TextMeshProUGUI val7 = EditorCardBuilder.CreateValueRow(item2, "Shape"); TextMeshProUGUI[] array2 = EditorCardBuilder.CreateVectorRow(item2, "Center"); TextMeshProUGUI[] array3 = EditorCardBuilder.CreateVectorRow(item2, "Size"); EditorCard_AIModule_NavMeshObstacle editorCard_AIModule_NavMeshObstacle = item.AddComponent<EditorCard_AIModule_NavMeshObstacle>(); editorCard_AIModule_NavMeshObstacle.Initialize(item3, val, val2, array, val3, val4, val5, val6, val7, array2, array3); editorCard_AIModule_NavMeshObstacle.SetValues(height, radius, velocity, carving, carveOnlyStationary, carvingMoveThreshold, carvingTimeToStationary, shape, center, size); return editorCard_AIModule_NavMeshObstacle; } } internal class EditorCard_Animator : EditorCardBase { private TextMeshProUGUI isOptimizableText; private TextMeshProUGUI isHumanText; private TextMeshProUGUI hasRootMotionText; private TextMeshProUGUI humanScaleText; private TextMeshProUGUI isInitializedText; private TextMeshProUGUI[] deltaPositionTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] deltaRotationTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] velocityTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] angularVelocityTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] rootPositionTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] rootRotationTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI applyRootMotionText; private TextMeshProUGUI animatePhysicsText; private TextMeshProUGUI updateModeText; private TextMeshProUGUI hasTransformHierarchyText; private TextMeshProUGUI gravityWeightText; private TextMeshProUGUI[] bodyPositionTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI[] bodyRotationTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; public void Initialize(TextMeshProUGUI titleText, TextMeshProUGUI isOptimizableText, TextMeshProUGUI isHumanText, TextMeshProUGUI hasRootMotionText, TextMeshProUGUI humanScaleText, TextMeshProUGUI isInitializedText, TextMeshProUGUI[] deltaPositionTexts, TextMeshProUGUI[] deltaRotationTexts, TextMeshProUGUI[] velocityTexts, TextMeshProUGUI[] angularVelocityTexts, TextMeshProUGUI[] rootPositionTexts, TextMeshProUGUI[] rootRotationTexts, TextMeshProUGUI applyRootMotionText, TextMeshProUGUI animatePhysicsText, TextMeshProUGUI updateModeText, TextMeshProUGUI hasTransformHierarchyText, TextMeshProUGUI gravityWeightText, TextMeshProUGUI[] bodyPositionTexts, TextMeshProUGUI[] bodyRotationTexts) { base.titleText = titleText; this.isOptimizableText = isOptimizableText; this.isHumanText = isHumanText; this.hasRootMotionText = hasRootMotionText; this.humanScaleText = humanScaleText; this.isInitializedText = isInitializedText; this.deltaPositionTexts = deltaPositionTexts; this.deltaRotationTexts = deltaRotationTexts; this.velocityTexts = velocityTexts; this.angularVelocityTexts = angularVelocityTexts; this.rootPositionTexts = rootPositionTexts; this.rootRotationTexts = rootRotationTexts; this.applyRootMotionText = applyRootMotionText; this.animatePhysicsText = animatePhysicsText; this.updateModeText = updateModeText; this.hasTransformHierarchyText = hasTransformHierarchyText; this.gravityWeightText = gravityWeightText; this.bodyPositionTexts = bodyPositionTexts; this.bodyRotationTexts = bodyRotationTexts; } public void SetIsOptimizable(bool b) { EditorCardBase.UpdateBoolText(isOptimizableText, b); } public void SetIsHuman(bool b) { EditorCardBase.UpdateBoolText(isHumanText, b); } public void SetHasRootMotion(bool b) { EditorCardBase.UpdateBoolText(hasRootMotionText, b); } public void SetHumanScale(float f) { EditorCardBase.UpdateStringText(humanScaleText, f.ToString("F2")); } public void SetIsInitialized(bool b) { EditorCardBase.UpdateBoolText(isInitializedText, b); } public void SetDeltaPosition(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(deltaPositionTexts, v); } public void SetDeltaRotation(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(deltaRotationTexts, v); } public void SetVelocity(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(velocityTexts, v); } public void SetAngularVelocity(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(angularVelocityTexts, v); } public void SetRootPosition(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(rootPositionTexts, v); } public void SetRootRotation(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(rootRotationTexts, v); } public void SetApplyRootMotion(bool b) { EditorCardBase.UpdateBoolText(applyRootMotionText, b); } public void SetAnimatePhysics(bool b) { EditorCardBase.UpdateBoolText(animatePhysicsText, b); } public void SetUpdateMode(string s) { EditorCardBase.UpdateStringText(updateModeText, s.ToString()); } public void SetHasTransformHierarchy(bool b) { EditorCardBase.UpdateBoolText(hasTransformHierarchyText, b); } public void SetGravityWeight(float f) { EditorCardBase.UpdateStringText(gravityWeightText, f.ToString("F2")); } public void SetBodyPosition(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(bodyPositionTexts, v); } public void SetBodyRotation(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(bodyRotationTexts, v); } public void SetValues(bool isOptimizable, bool isHuman, bool hasRootMotion, float humanScale, bool isInitialized, Vector3 deltaPosition, Vector3 deltaRotation, Vector3 velocity, Vector3 angularVelocity, Vector3 rootPosition, Vector3 rootRotation, bool applyRootMotion, bool animatePhysics, string updateMode, bool hasTransformHierarchy, float gravityWeight, Vector3 bodyPosition, Vector3 bodyRotation) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) SetIsOptimizable(isOptimizable); SetIsHuman(isHuman); SetHasRootMotion(hasRootMotion); SetHumanScale(humanScale); SetIsInitialized(isInitialized); SetDeltaPosition(deltaPosition); SetDeltaRotation(deltaRotation); SetVelocity(velocity); SetAngularVelocity(angularVelocity); SetRootPosition(rootPosition); SetRootRotation(rootRotation); SetApplyRootMotion(applyRootMotion); SetAnimatePhysics(animatePhysics); SetUpdateMode(updateMode); SetHasTransformHierarchy(hasTransformHierarchy); SetGravityWeight(gravityWeight); SetBodyPosition(bodyPosition); SetBodyRotation(bodyRotation); } public static EditorCard_Animator Create(Transform contentParent, string title, bool isOptimizable, bool isHuman, bool hasRootMotion, float humanScale, bool isInitialized, Vector3 deltaPosition, Vector3 deltaRotation, Vector3 velocity, Vector3 angularVelocity, Vector3 rootPosition, Vector3 rootRotation, bool applyRootMotion, bool animatePhysics, string updateMode, bool hasTransformHierarchy, float gravityWeight, Vector3 bodyPosition, Vector3 bodyRotation) { //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) tuple = EditorCardBuilder.CreateBaseCard(contentParent, "Card_Custom_Animator", title); GameObject item = tuple.cardObj; Transform item2 = tuple.bodyContainer; TextMeshProUGUI item3 = tuple.titleTMP; TextMeshProUGUI val = EditorCardBuilder.CreateBoolRow(item2, "Is Optimizable"); TextMeshProUGUI val2 = EditorCardBuilder.CreateBoolRow(item2, "Is Human"); TextMeshProUGUI val3 = EditorCardBuilder.CreateBoolRow(item2, "Has Root Motion"); TextMeshProUGUI val4 = EditorCardBuilder.CreateValueRow(item2, "Human Scale"); TextMeshProUGUI val5 = EditorCardBuilder.CreateBoolRow(item2, "Is Initialized"); TextMeshProUGUI[] array = EditorCardBuilder.CreateVectorRow(item2, "Delta Position"); TextMeshProUGUI[] array2 = EditorCardBuilder.CreateVectorRow(item2, "Delta Rotation"); TextMeshProUGUI[] array3 = EditorCardBuilder.CreateVectorRow(item2, "Velocity"); TextMeshProUGUI[] array4 = EditorCardBuilder.CreateVectorRow(item2, "Angular Velocity"); TextMeshProUGUI[] array5 = EditorCardBuilder.CreateVectorRow(item2, "Root Position"); TextMeshProUGUI[] array6 = EditorCardBuilder.CreateVectorRow(item2, "Root Rotation"); TextMeshProUGUI val6 = EditorCardBuilder.CreateBoolRow(item2, "Apply Root Motion"); TextMeshProUGUI val7 = EditorCardBuilder.CreateBoolRow(item2, "Animate Physics"); TextMeshProUGUI val8 = EditorCardBuilder.CreateValueRow(item2, "Update Mode"); TextMeshProUGUI val9 = EditorCardBuilder.CreateBoolRow(item2, "Has Transform Hierarchy"); TextMeshProUGUI val10 = EditorCardBuilder.CreateValueRow(item2, "Gravity Weight"); TextMeshProUGUI[] array7 = EditorCardBuilder.CreateVectorRow(item2, "Body Position"); TextMeshProUGUI[] array8 = EditorCardBuilder.CreateVectorRow(item2, "Body Rotation"); EditorCard_Animator editorCard_Animator = item.AddComponent<EditorCard_Animator>(); editorCard_Animator.Initialize(item3, val, val2, val3, val4, val5, array, array2, array3, array4, array5, array6, val6, val7, val8, val9, val10, array7, array8); editorCard_Animator.SetValues(isOptimizable, isHuman, hasRootMotion, humanScale, isInitialized, deltaPosition, deltaRotation, velocity, angularVelocity, rootPosition, rootRotation, applyRootMotion, animatePhysics, updateMode, hasTransformHierarchy, gravityWeight, bodyPosition, bodyRotation); return editorCard_Animator; } } internal class EditorCard_AudioSource : EditorCardBase { private TextMeshProUGUI clipText; private TextMeshProUGUI muteText; private TextMeshProUGUI bypassEffectsText; private TextMeshProUGUI bypassListenerEffectsText; private TextMeshProUGUI bypassReverbZonesText; private TextMeshProUGUI playOnAwakeText; private TextMeshProUGUI loopText; private TextMeshProUGUI priorityText; private TextMeshProUGUI volumeText; private TextMeshProUGUI pitchText; private TextMeshProUGUI panStereoText; private TextMeshProUGUI spacialBlendText; private TextMeshProUGUI reverbZoneMixText; private TextMeshProUGUI isPlayingText; public void Initialize(TextMeshProUGUI titleText, TextMeshProUGUI clipText, TextMeshProUGUI muteText, TextMeshProUGUI bypassEffectsText, TextMeshProUGUI bypassListenerEffectsText, TextMeshProUGUI bypassReverbZonesText, TextMeshProUGUI playOnAwakeText, TextMeshProUGUI loopText, TextMeshProUGUI priorityText, TextMeshProUGUI volumeText, TextMeshProUGUI pitchText, TextMeshProUGUI panStereoText, TextMeshProUGUI spacialBlendText, TextMeshProUGUI reverbZoneMixText, TextMeshProUGUI isPlayingText) { base.titleText = titleText; this.clipText = clipText; this.muteText = muteText; this.bypassEffectsText = bypassEffectsText; this.bypassListenerEffectsText = bypassListenerEffectsText; this.bypassReverbZonesText = bypassReverbZonesText; this.playOnAwakeText = playOnAwakeText; this.loopText = loopText; this.priorityText = priorityText; this.volumeText = volumeText; this.pitchText = pitchText; this.panStereoText = panStereoText; this.spacialBlendText = spacialBlendText; this.reverbZoneMixText = reverbZoneMixText; this.isPlayingText = isPlayingText; } public void SetClip(string s) { EditorCardBase.UpdateStringText(clipText, s.ToString()); } public void SetMute(bool b) { EditorCardBase.UpdateBoolText(muteText, b); } public void SetBypassEffects(bool b) { EditorCardBase.UpdateBoolText(bypassEffectsText, b); } public void SetBypassListenerEffects(bool b) { EditorCardBase.UpdateBoolText(bypassListenerEffectsText, b); } public void SetBypassReverbZones(bool b) { EditorCardBase.UpdateBoolText(bypassReverbZonesText, b); } public void SetPlayOnAwake(bool b) { EditorCardBase.UpdateBoolText(playOnAwakeText, b); } public void SetLoop(bool b) { EditorCardBase.UpdateBoolText(loopText, b); } public void SetPriority(int i) { EditorCardBase.UpdateStringText(priorityText, i.ToString()); } public void SetVolume(float f) { EditorCardBase.UpdateStringText(volumeText, f.ToString("F2")); } public void SetPitch(float f) { EditorCardBase.UpdateStringText(pitchText, f.ToString("F2")); } public void SetPanStereo(float f) { EditorCardBase.UpdateStringText(panStereoText, f.ToString("F2")); } public void SetSpacialBlend(float f) { EditorCardBase.UpdateStringText(spacialBlendText, f.ToString("F2")); } public void SetReverbZoneMix(float f) { EditorCardBase.UpdateStringText(reverbZoneMixText, f.ToString("F2")); } public void SetIsPlaying(bool b) { EditorCardBase.UpdateBoolText(isPlayingText, b); } public void SetValues(string clip, bool mute, bool bypassEffects, bool bypassListenerEffects, bool bypassReverbZones, bool playOnAwake, bool loop, int priority, float volume, float pitch, float panStereo, float spacialBlend, float reverbZoneMix, bool isPlaying) { SetClip(clip); SetMute(mute); SetBypassEffects(bypassEffects); SetBypassListenerEffects(bypassListenerEffects); SetBypassReverbZones(bypassReverbZones); SetPlayOnAwake(playOnAwake); SetLoop(loop); SetPriority(priority); SetVolume(volume); SetPitch(pitch); SetPanStereo(panStereo); SetSpacialBlend(spacialBlend); SetReverbZoneMix(reverbZoneMix); SetIsPlaying(isPlaying); } public static EditorCard_AudioSource Create(Transform contentParent, string title, string clip, bool mute, bool bypassEffects, bool bypassListenerEffects, bool bypassReverbZones, bool playOnAwake, bool loop, int priority, float volume, float pitch, float panStereo, float spacialBlend, float reverbZoneMix, bool isPlaying) { (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) tuple = EditorCardBuilder.CreateBaseCard(contentParent, "Card_Custom_AudioSource", title); GameObject item = tuple.cardObj; Transform item2 = tuple.bodyContainer; TextMeshProUGUI item3 = tuple.titleTMP; TextMeshProUGUI val = EditorCardBuilder.CreateValueRow(item2, "Clip"); TextMeshProUGUI val2 = EditorCardBuilder.CreateBoolRow(item2, "Mute"); TextMeshProUGUI val3 = EditorCardBuilder.CreateBoolRow(item2, "Bypass Effects"); TextMeshProUGUI val4 = EditorCardBuilder.CreateBoolRow(item2, "Bypass Listener Effects"); TextMeshProUGUI val5 = EditorCardBuilder.CreateBoolRow(item2, "Bypass Reverb Zones"); TextMeshProUGUI val6 = EditorCardBuilder.CreateBoolRow(item2, "Play On Awake"); TextMeshProUGUI val7 = EditorCardBuilder.CreateBoolRow(item2, "Loop"); TextMeshProUGUI val8 = EditorCardBuilder.CreateValueRow(item2, "Priority"); TextMeshProUGUI val9 = EditorCardBuilder.CreateValueRow(item2, "Volume"); TextMeshProUGUI val10 = EditorCardBuilder.CreateValueRow(item2, "Pitch"); TextMeshProUGUI val11 = EditorCardBuilder.CreateValueRow(item2, "Pan Stereo"); TextMeshProUGUI val12 = EditorCardBuilder.CreateValueRow(item2, "Spacial Blend"); TextMeshProUGUI val13 = EditorCardBuilder.CreateValueRow(item2, "Reverb Zone Mix"); TextMeshProUGUI val14 = EditorCardBuilder.CreateBoolRow(item2, "Is Playing"); EditorCard_AudioSource editorCard_AudioSource = item.AddComponent<EditorCard_AudioSource>(); editorCard_AudioSource.Initialize(item3, val, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11, val12, val13, val14); editorCard_AudioSource.SetValues(clip, mute, bypassEffects, bypassListenerEffects, bypassReverbZones, playOnAwake, loop, priority, volume, pitch, panStereo, spacialBlend, reverbZoneMix, isPlaying); return editorCard_AudioSource; } } internal class EditorCard_BoxCollider : EditorCardBase { private TextMeshProUGUI triggerText; private TextMeshProUGUI contactsText; private TextMeshProUGUI[] centerTexts; private TextMeshProUGUI[] sizeTexts; public void Initialize(TextMeshProUGUI titleText, TextMeshProUGUI triggerText, TextMeshProUGUI contactsText, TextMeshProUGUI[] centerTexts, TextMeshProUGUI[] sizeTexts) { base.titleText = titleText; this.triggerText = triggerText; this.contactsText = contactsText; this.centerTexts = centerTexts; this.sizeTexts = sizeTexts; } public void SetTrigger(bool b) { EditorCardBase.UpdateBoolText(triggerText, b); } public void SetContacts(bool b) { EditorCardBase.UpdateBoolText(contactsText, b); } public void SetCenter(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(centerTexts, v); } public void SetSize(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(sizeTexts, v); } public void SetValues(bool isTrigger, bool providesContacts, Vector3 center, Vector3 size) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) SetTrigger(isTrigger); SetContacts(providesContacts); SetCenter(center); SetSize(size); } public static EditorCard_BoxCollider Create(Transform contentParent, string title, bool isTrigger, bool providesContacts, Vector3 center, Vector3 size) { //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) tuple = EditorCardBuilder.CreateBaseCard(contentParent, "Card_BoxCollider", title); GameObject item = tuple.cardObj; Transform item2 = tuple.bodyContainer; TextMeshProUGUI item3 = tuple.titleTMP; TextMeshProUGUI val = EditorCardBuilder.CreateBoolRow(item2, "Is Trigger"); TextMeshProUGUI val2 = EditorCardBuilder.CreateBoolRow(item2, "Provides Contacts"); TextMeshProUGUI[] array = EditorCardBuilder.CreateVectorRow(item2, "Center"); TextMeshProUGUI[] array2 = EditorCardBuilder.CreateVectorRow(item2, "Size"); EditorCard_BoxCollider editorCard_BoxCollider = item.AddComponent<EditorCard_BoxCollider>(); editorCard_BoxCollider.Initialize(item3, val, val2, array, array2); editorCard_BoxCollider.SetValues(isTrigger, providesContacts, center, size); return editorCard_BoxCollider; } } internal class EditorCard_CapsuleCollider : EditorCardBase { private TextMeshProUGUI triggerText; private TextMeshProUGUI contactsText; private TextMeshProUGUI[] centerTexts = (TextMeshProUGUI[])(object)new TextMeshProUGUI[3]; private TextMeshProUGUI radiusText; private TextMeshProUGUI heightText; public void Initialize(TextMeshProUGUI titleText, TextMeshProUGUI triggerText, TextMeshProUGUI contactsText, TextMeshProUGUI[] centerTexts, TextMeshProUGUI radiusText, TextMeshProUGUI heightText) { base.titleText = titleText; this.triggerText = triggerText; this.contactsText = contactsText; this.centerTexts = centerTexts; this.radiusText = radiusText; this.heightText = heightText; } public void SetTrigger(bool b) { EditorCardBase.UpdateBoolText(triggerText, b); } public void SetContacts(bool b) { EditorCardBase.UpdateBoolText(contactsText, b); } public void SetCenter(Vector3 v) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EditorCardBase.UpdateVectorTexts(centerTexts, v); } public void SetRadius(float f) { EditorCardBase.UpdateStringText(radiusText, f.ToString("F2")); } public void SetHeight(float f) { EditorCardBase.UpdateStringText(heightText, f.ToString("F2")); } public void SetValues(bool isTrigger, bool providesContacts, Vector3 center, float radius, float height) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) SetTrigger(isTrigger); SetContacts(providesContacts); SetCenter(center); SetRadius(radius); SetHeight(height); } public static EditorCard_CapsuleCollider Create(Transform contentParent, string title, bool isTrigger, bool providesContacts, Vector3 center, float radius, float height) { //IL_007f: Unknown result type (might be due to invalid IL or missing references) (GameObject cardObj, Transform bodyContainer, TextMeshProUGUI titleTMP) tuple = EditorCardBuilder.CreateBaseCard(contentParent, "Card_CapsuleCollider", title); GameObject item = tuple.cardObj; Transform item2 = tuple.bodyContainer; TextMeshProUGUI item3 = tuple.titleTMP; TextMeshProUGUI val = EditorCardBuilder.CreateBoolRow(item2, "Is Trigger"); TextMeshProUGUI val2 = EditorCardBuilder.CreateBoolRow(item2, "Provides Contacts"); TextMeshProUGUI[] array = EditorCardBuilder.CreateVectorRow(item2, "Center"); TextMeshProUGUI val3 = EditorCardBuilder.CreateValueRow(item2, "Radius"); TextMeshProUGUI val4 = EditorCardBuilder.CreateValueRow(item2, "Height"); EditorCard_CapsuleCollider editorCard_CapsuleCollider = item.AddComponent<EditorCard_CapsuleCollider>(); editorCard_CapsuleCollider.Initialize(item3, val, val2, array, val3,