-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from lexonegit/twitch-name-color
Twitch name color behavior
- Loading branch information
Showing
16 changed files
with
1,638 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Unity-Twitch-Chat/Assets/ExampleProject/ColorNormalizationTester.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
|
||
public class ColorNormalizationTester : MonoBehaviour | ||
{ | ||
private Text[] children; | ||
|
||
private void Start() | ||
{ | ||
children = GetComponentsInChildren<Text>(); | ||
|
||
foreach (Text text in children) | ||
{ | ||
text.color = Lexone.UnityTwitchChat.ChatColors.NormalizeColor(text.color); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Unity-Twitch-Chat/Assets/ExampleProject/ColorNormalizationTester.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.