여기서는 파티클의 컬러가 초당 거리 단위 속도에 따라 변경되도록 설정할 수 있습니다.
이 모듈은 Particle System 컴포넌트의 일부입니다. 새로운 파티클 시스템 게임 오브젝트를 생성하거나 Particle System 컴포넌트를 기존의 게임 오브젝트에 추가하는 경우 Unity는 속도별 컬러 모듈을 파티클 시스템에 추가합니다. 기본적으로 Unity는 이 모듈을 비활성화합니다. 새로운 파티클 시스템을 생성하고 이 모듈을 활성화하려면 다음을 단계를 따르십시오.
이 모듈이 Particle System 컴포넌트의 일부이므로 ParticleSystem 클래스를 통해 액세스합니다. 이 모듈에 액세스하고 런타임 시 값을 변경하는 방법에 대한 내용은 속도별 컬러 모듈 API 문서를 참조하십시오.
이 섹션의 일부 프로퍼티에 대해 다른 모드를 사용하여 해당 값을 설정할 수 있습니다. 사용할 수 있는 모드에 대한 정보는 시간 경과에 따른 프로퍼티 다양화를 참조하십시오.
프로퍼티 | 기능 |
---|---|
Color | 속도 범위에 따라 정의된 파티클의 컬러 그레디언트입니다. |
Speed Range | 컬러 그레디언트가 매핑될 속도 범위의 최고점 및 최저점입니다(범위를 벗어나는 속도는 그레디언트의 끝 점에 매핑됨). |
불꽃과 같이 불타거나 빛나는 파티클은 공기 중에서 빠르게 움직일수록(예를 들어, 불꽃이 산소에 노출될 경우) 더 밝게 보이는 경향이 있습니다. 그러다가 속도가 느려지면서 점차 어두워집니다. 이러한 효과를 시뮬레이션하려면 속도 범위 최고점에는 흰색을, 최저점에는 빨간색을 설정한 그레디언트로 Color By Speed 를 사용할 수 있습니다. 불꽃을 예로 들면 빠른 파티클은 흰색, 느린 파티클은 빨간색으로 표시됩니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.