-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text_Ticker #293
Text_Ticker #293
Conversation
I have added a script that scrolls the text field when its contents are too wide for the available space.
Even met Tom samen naar gekeken maar lijkt wel een beetje veel werk om dit goed mergebaar te krijgen. Misschien toch een frisse pull van main doen en even de prefab herstellen in nieuwe vorm |
# Conflicts: # Assets/Prefabs/UI/Layers/LayerUI.prefab
Fixed it 😇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 verbeterpuntjes maar niet noodzakelijk
{ | ||
public class TextTicker : MonoBehaviour | ||
{ | ||
public RectTransform childRect; // Assign the child RectTransform in the inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moet deze public zijn en kan je niet private childrect gebruiken met een getcomponentinchildren
public void OnWidthChange() // Call this method when a width change occurs | ||
{ | ||
Invoke("UpdateWidths",0.1f); | ||
Invoke("CheckAndStartScrolling",0.1f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je zou evt een timer method kunnen schrijven met coroutine om te voorkomen dat als method namen veranderen in de toekomst er geen literals zijn die vergeten worden, maar voor nu prima
I have added a script that scrolls the text field when its contents are too wide for the available space.
Changes exist in LayerUI.prefab