more progress, GameObject inspector almost done

This commit is contained in:
sinaioutlander
2020-11-03 20:59:13 +11:00
parent b9b5d721c8
commit a46bc11e42
65 changed files with 1043 additions and 385 deletions

View File

@ -3,7 +3,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace ExplorerBeta.UI
namespace UnityExplorer.UI
{
public static class UIFactory
{
@ -581,6 +581,7 @@ namespace ExplorerBeta.UI
templateImage.color = new Color(0.15f, 0.15f, 0.15f, 1.0f);
ScrollRect scrollRect = templateObj.AddComponent<ScrollRect>();
scrollRect.scrollSensitivity = 25;
scrollRect.content = contentObj.GetComponent<RectTransform>();
scrollRect.viewport = viewportObj.GetComponent<RectTransform>();
scrollRect.horizontal = false;