Skip to content

Commit

Permalink
Fix require component issue n typo (#145)
Browse files Browse the repository at this point in the history
* fix RequireComponent issue

* 1.fix typo

* Add FullScreen Demo(All Rect Transform Set to stretch) From #130

Co-authored-by: syaoranchang <dear60417@yahoo.com.tw>
  • Loading branch information
SyaoranChang and syaoranchang committed Aug 24, 2022
1 parent 038fe85 commit 24431ad
Show file tree
Hide file tree
Showing 8 changed files with 4,296 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Editor/LoopScrollRectInspector.cs
Expand Up @@ -42,7 +42,7 @@ public override void OnInspectorGUI ()
speed = EditorGUILayout.FloatField(" Speed", speed, GUILayout.Width(w+15));
if(GUILayout.Button("Scroll With Speed", GUILayout.Width(130)))
{
scroll.SrollToCell(index, speed);
scroll.ScrollToCell(index, speed);
}
EditorGUILayout.EndHorizontal();

Expand All @@ -51,7 +51,7 @@ public override void OnInspectorGUI ()
time = EditorGUILayout.FloatField(" Time", time, GUILayout.Width(w+15));
if(GUILayout.Button("Scroll Within Time", GUILayout.Width(130)))
{
scroll.SrollToCellWithinTime(index, time);
scroll.ScrollToCellWithinTime(index, time);
}
EditorGUILayout.EndHorizontal();
}
Expand Down
4 changes: 2 additions & 2 deletions Runtime/LoopScrollRectBase.cs
Expand Up @@ -743,7 +743,7 @@ public int GetLastItem(out float offset)
return itemTypeEnd - idx - 1;
}

public void SrollToCell(int index, float speed)
public void ScrollToCell(int index, float speed)
{
if (totalCount >= 0 && (index < 0 || index >= totalCount))
{
Expand All @@ -759,7 +759,7 @@ public void SrollToCell(int index, float speed)
StartCoroutine(ScrollToCellCoroutine(index, speed));
}

public void SrollToCellWithinTime(int index, float time)
public void ScrollToCellWithinTime(int index, float time)
{
if (totalCount >= 0 && (index < 0 || index >= totalCount))
{
Expand Down

0 comments on commit 24431ad

Please sign in to comment.