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