Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 |
/** * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. * AnimNotify for having a Trails emitter spawn based on an animation. */ class AnimNotify_Trails extends AnimNotify native(Anim); /** The Particle system to play */ var(Trails) ParticleSystem PSTemplate; /** If this effect should be considered extreme content */ var(Trails) bool bIsExtremeContent; /** The first edge socket - with the second edge defines the edges of the trail */ var(Trails) name FirstEdgeSocketName; /** * The control point socket - controls the UV tiling as well as * tapering the two edges to this point. */ var(Trails) name ControlPointSocketName; /** The second edge socket - with the first edge defines the edges of the trail */ var(Trails) name SecondEdgeSocketName; /** If TRUE, the particle system will play in the viewer as well as in game */ var() editoronly bool bPreview; /** If Owner is hidden, skip particle effect */ var() bool bSkipIfOwnerIsHidden; /** Locally store 'start' time to determine when regenerating the curve data is required. */ var float LastStartTime; /** The end time (will auto-adjust Duration setting, and vice-versa) */ var float EndTime; /** The timestep at which to sample the animation for trail points */ var deprecated float SampleTimeStep; struct native TrailSocketSamplePoint { /** Position of the socket relative to the root-bone at the sample point */ var vector Position; /** Velocity of the socket at the sample point */ var vector Velocity; }; struct native TrailSamplePoint { /** The time value at this sample point, relative to the starting time. */ var float RelativeTime; /** The sample for the first edge */ var TrailSocketSamplePoint FirstEdgeSample; /** The sample for the control point */ var TrailSocketSamplePoint ControlPointSample; /** The sample for the second edge */ var TrailSocketSamplePoint SecondEdgeSample; }; var deprecated array<TrailSamplePoint> TrailSampleData; var bool bResampleRequired; /** The frame rate (FPS) to sample the animation at for trail points */ var(Trails) float SamplesPerSecond; struct native TrailSample { /** The time value at this sample point, relative to the starting time. */ var float RelativeTime; /** The sample for the first edge */ var vector FirstEdgeSample; /** The sample for the control point */ var vector ControlPointSample; /** The sample for the second edge */ var vector SecondEdgeSample; }; /** The sampled data for the trail */ var array<TrailSample> TrailSampledData; /** Used by the event functions... */ var transient float CurrentTime; var transient float TimeStep; var transient AnimNodeSequence AnimNodeSeq; /** * Called from NotifyTick or NotifyEnd, this function will return the * number of steps to take for a notify call given the index of the * last sample that was processed. * * @param InLastTrailIndex The index of the last sample that was processed. * * @return INT The number of steps to take for the notify. */ function native int GetNumSteps(int InLastTrailIndex) const; cpptext { // UObject interfrace. virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent); virtual void PostLoad(); // AnimNotify interface. virtual void Notify(class UAnimNodeSequence* NodeSeq); virtual void NotifyTick(class UAnimNodeSequence* NodeSeq, FLOAT AnimCurrentTime, FLOAT AnimTimeStep, FLOAT InTotalDuration); virtual void NotifyEnd(class UAnimNodeSequence* NodeSeq, FLOAT AnimCurrentTime); protected: enum ETrailNotifyType { TrailNotifyType_Start, TrailNotifyType_Tick, TrailNotifyType_End }; /** * Handle the various notifies. This should only be called internally! * * @param InNodeSeq The anim node sequence triggering the notify * @param InNotifyType The type of notify that is being handled */ void HandleNotify(class UAnimNodeSequence* InNodeSeq, ETrailNotifyType InNotifyType); public: virtual AActor* GetNotifyActor(class UAnimNodeSequence* NodeSeq); virtual FString GetEditorComment() { return TEXT("TRAILS"); } /** * Find the ParticleSystemComponent used by this anim notify. * * @param NodeSeq The AnimNodeSequence this notify is associated with. * * @return UParticleSystemComponent The particle system component */ UParticleSystemComponent* GetPSysComponent(class UAnimNodeSequence* NodeSeq); /** * Called by the AnimSet viewer when the 'parent' FAnimNotifyEvent is edited. * * @param NodeSeq The AnimNodeSequence this notify is associated with. * @param OwnerEvent The FAnimNotifyEvent that 'owns' this AnimNotify. */ virtual void AnimNotifyEventChanged(class UAnimNodeSequence* NodeSeq, FAnimNotifyEvent* OwnerEvent); /** Store the animation data for the current settings. Editor-only. */ void StoreAnimationData(class UAnimNodeSequence* NodeSeq); /** Verify the notify is setup correctly for sampling animation data. Editor-only. */ UBOOL IsSetupValid(class UAnimNodeSequence* NodeSeq); } defaultproperties { bSkipIfOwnerIsHidden=TRUE LastStartTime=0.0f SamplesPerSecond=60 SampleTimeStep=0.016f bResampleRequired=false FirstEdgeSocketName=EndControl ControlPointSocketName=MidControl SecondEdgeSocketName=StartControl NotifyColor=(R=255,G=64,B=255) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |