UDN
Search public documentation:
GFxHUDTriggerKR
English Translation
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
트리거를 건드렸을 때 HUD 에 뭔가 표시하는 법
문서 변경내역: James Tan 작성. 홍성진 번역.
개요
플레이어가 레벨에 있는 트리거를 건드렸을 때 HUD 에 무언가를 표시하는 방법은 여러가지 있습니다. 예를 들면 키즈멧만 사용하는 접근법이 있겠고, 다른 방법으로는 UnrealScript 로 (레벨에 놓을 수 있는) 커스텀 트리거 오브젝트를 만들어 스케일폼더러 뭔가 하라고 이르는 방법이 있겠습니다.
class MyTrigger extends Trigger placeable ClassGroup(Common); event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal) { local Pawn TouchingPawn; local MyPlayerController PC; local MyHUD HUD; TouchingPawn = Pawn(Other); if (TouchingPawn != None) { PC = MyPlayerController(TouchingPawn.Controller); if (PC != None) { HUD = MyHUD(PC.MyHUD); if (HUD != None && HUD.HUDMovie != None) { HUD.HUDMovie.DoSomething(); } } } }