mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-13 15:26:36 +08:00
more progress, GameObject inspector almost done
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user