Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
DynamicHScrollView.cs
Go to the documentation of this file.
1using UnityEngine;
2
3namespace Mosframe;
4
5[AddComponentMenu("UI/Dynamic H Scroll View")]
7{
8 public override float contentAnchoredPosition
9 {
10 get
11 {
12 return contentRect.anchoredPosition.x;
13 }
14 set
15 {
16 contentRect.anchoredPosition = new Vector2(value, contentRect.anchoredPosition.y);
17 }
18 }
19
20 public override float contentSize => contentRect.rect.width;
21
22 public override float viewportSize => viewportRect.rect.width;
23
24 protected override float itemSize => itemPrototype.rect.width;
25
26 public override void init()
27 {
28 direction = Direction.Horizontal;
29 base.init();
30 }
31
32 protected override void Awake()
33 {
34 base.Awake();
35 direction = Direction.Horizontal;
36 }
37
38 protected override void Start()
39 {
40 base.Start();
41 }
42}
override float contentAnchoredPosition