Unity가 기본적으로 이벤트 함수를 처리하는 방법은 이벤트 함수 실행 순서 문서를 참조하십시오.
Script Execution Order 설정(메뉴: Edit > Project Settings 에서 Script Execution Order 카테고리 선택)을 사용할 수 있습니다.
더하기 “+” 버튼을 눌러 스크립트를 인스펙터에 추가한 후 끌어서 움직여 스크립트의 상대적인 순서를 바꿀 수 있습니다. 스크립트를 Default Time 바의 위나 아래로도 끌어다 놓을 수 있습니다. 위에 있으면 기본 시간 앞에 실행되고, 아래에 있으면 기본 시간 뒤에 실행됩니다. 스크립트는 다이얼로그에 표시된 순서대로 위에서 아래로 실행됩니다. 다이얼로그에 없는 스크립트는 기본 시간에 임의의 순서대로 실행됩니다.
각 스크립트의 숫자는 실제로 스크립트가 정렬되는 순서입니다. 스크립트가 새 포지션에 드래그되면 스크립트에 붙은 숫자도 자동으로 바뀝니다. 수동으로든 자동으로든 숫자가 바뀌면 해당 스크립트의 메타 파일이 변경됩니다. 그렇기 때문에 순서를 바꿀 때 가능한 숫자를 적은 횟수로 바꾸는 것이 좋습니다. 모든 스크립트에 새로운 숫자를 할당하지 않고 드래그된 스크립트에만 숫자가 바뀌는 것은 이 때문입니다.
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.