이 모듈은 파티클의 컬러와 투명도가 수명 주기를 따라 어떻게 변하는지를 지정합니다.
이 모듈은 Particle System 컴포넌트의 일부입니다. 새로운 파티클 시스템 게임 오브젝트를 생성하거나 Particle System 컴포넌트를 기존의 게임 오브젝트에 추가하는 경우 Unity는 수명 주기에 따른 컬러 모듈을 파티클 시스템에 추가합니다. 기본적으로 Unity는 이 모듈을 비활성화합니다. 새로운 파티클 시스템을 생성하고 이 모듈을 활성화하려면 다음 단계를 따르십시오.
이 모듈이 Particle System 컴포넌트의 일부이므로 ParticleSystem 클래스를 통해 액세스합니다. 이 모듈에 액세스하고 런타임 시 값을 변경하는 방법에 대한 내용은 수명 주기에 따른 컬러 모듈 API 문서를 참조하십시오.
이 섹션의 일부 프로퍼티에 대해 다른 모드를 사용하여 해당 값을 설정할 수 있습니다. 사용할 수 있는 모드에 대한 정보는 시간 경과에 따른 프로퍼티 다양화를 참조하십시오.
프로퍼티: | 기능: |
---|---|
Color | 수명 주기 동안 변화하는 파티클의 컬러 그레디언트입니다. 그레디언트 바의 맨 왼쪽 부분은 파티클 수명의 시작을 나타내며 그레디언트 바의 맨 오른쪽 부분은 파티클 수명이 끝났음을 나타냅니다. 위의 이미지에서 파티클은 주황색으로 시작하여 시간이 흐름에 따라 점점 흐릿해져서 수명이 끝날 때쯤에는 완전히 보이지 않게 됩니다. |
자연적이고 환상적인 타입의 파티클은 시간이 지남에 따라 컬러가 다양하게 변화하므로 다양한 목적으로 이 프로퍼티를 사용할 수 있습니다. 예를 들어, 흰색 고온 불꽃은 공기를 통과하면서 점점 차가워지고, 마법 주문을 외우면 무지개 빛 불꽃이 튀어나올 수 있습니다. 알파(투명도)의 변화도 마찬가지로 중요합니다. 파티클은 수명이 다할 때, 타거나 퇴색하거나 소멸되는 현상(예: 뜨거운 불꽃, 폭죽, 연기 파티클)이 일반적으로 발생하며 단순한 감소 그레디언트가 이런 효과를 만들어냅니다.
또한 Start Color 프로퍼티를 사용하고 있는 경우 이 모듈은 최종 파티클 컬러를 얻기 위해 두 가지 컬러를 배합합니다.
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.