뜬금이 별똥이 아빠

hexadecimal convert color

Unity_C#2018. 10. 16. 20:37
1
2
3
4
5
Color color;
if (ColorUtility.TryParseHtmlString("#808080"out color))
{
    material.SetColor("_TintColor", color);
}
cs


'Unity_C#' 카테고리의 다른 글

2D 스크롤 맵  (0) 2019.08.28
InvalidOperationException : Operation is not valid due to the current state of the object  (0) 2018.11.22
유니티 최적화 관련 문서  (0) 2018.07.10
UI 최적화  (0) 2018.07.06
Division by zero 에러  (0) 2018.06.25