UDN
Search public documentation:
GFxHUDTriggerJP
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 上に何かを表示させる方法
概要
レベル内でトリガーがタッチされた場合に、プレイヤーの HUD 上に何らかのものを表示させる方法はいくつかあります。たとえば、Kismet を使用することも 1 つの有効なアプローチです。他の方法としては、「Scaleform」に何かするように知らせるカスタムのトリガーオブジェクト (レベルに配置することができるもの) を 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(); } } } }