|
|
virtual void | AcknowledgePossession (class APawn *P) |
| | Returns true if input should be frozen (whether UnFreeze timer is active)
|
| |
|
virtual void | ActivateTouchInterface (class UTouchInterface *NewTouchInterface) |
| | Activates a new touch interface for this player controller
|
| |
|
virtual void | AddCheats (bool bForce=false) |
| | Notifies the server that the client has ticked gameplay code, and should no longer get the extended "still loading" timeout grace period
|
| |
| virtual void | AddPitchInput (float Val) |
| | Add Pitch (look up) input. 更多...
|
| |
| virtual void | AddRollInput (float Val) |
| | Add Roll input. 更多...
|
| |
| virtual void | AddYawInput (float Val) |
| | Add Yaw (turn) input. 更多...
|
| |
|
| APlayerController (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get()) |
| | Default Constructor
|
| |
| virtual void | AutoManageActiveCameraTarget (AActor *SuggestedTarget) |
| | If bAutoManageActiveCameraTarget is true, then automatically manage the active camera target. 更多...
|
| |
|
virtual void | BeginInactiveState () override |
| | State entered when inactive (no possessed pawn, not spectating, etc).
|
| |
| void | BuildHiddenComponentList (const FVector &ViewLocation, TSet< FPrimitiveComponentId > &HiddenComponentsOut) |
| | Builds a list of components that are hidden based upon gameplay. 更多...
|
| |
| virtual void | CalcCamera (float DeltaTime, struct FMinimalViewInfo &OutResult) override |
| | Calculate camera view point, when viewing this actor. 更多...
|
| |
| virtual void | Camera (FName NewMode) |
| | Change Camera mode 更多...
|
| |
| virtual bool | CanRestartPlayer () |
| | Returns true if this controller thinks it's able to restart. 更多...
|
| |
|
virtual void | ChangeState (FName NewState) override |
| | Change the current state to named state
|
| |
|
virtual void | CleanUpAudioComponents () |
| | Clears out 'left-over' audio components.
|
| |
|
virtual void | CleanupGameViewport () |
| | Gives the PlayerController an opportunity to cleanup any changes it applied to the game viewport, primarily for the touch interface
|
| |
| virtual void | CleanupPlayerState () override |
| | Called from Destroyed(). 更多...
|
| |
|
void | ClearAudioListenerOverride () |
| | Clear any overrides that have been applied to audio listener
|
| |
|
void | ClientAddTextureStreamingLoc (FVector InLoc, float Duration, bool bOverrideLocation) |
| | Adds a location to the texture streaming system for the specified duration.
|
| |
|
void | ClientCancelPendingMapChange () |
| | Tells client to cancel any pending map change.
|
| |
|
void | ClientCapBandwidth (int32 Cap) |
| | Set CurrentNetSpeed to the lower of its current value and Cap.
|
| |
|
virtual void | ClientClearCameraLensEffects () |
| | Removes all Camera Lens Effects.
|
| |
|
void | ClientCommitMapChange () |
| | Actually performs the level transition prepared by PrepareMapChange().
|
| |
| virtual void | ClientEnableNetworkVoice (bool bEnable) |
| | Tell the client to enable or disable voice chat (not muting) 更多...
|
| |
|
void | ClientEndOnlineSession () |
| | Notify client that the session is about to start
|
| |
|
void | ClientFlushLevelStreaming () |
| | Tells the client to block until all pending level streaming actions are complete happens at the end of the tick primarily used to force update the client ASAP at join time
|
| |
|
void | ClientForceGarbageCollection () |
| | Forces GC at the end of the tick on the client
|
| |
| void | ClientGameEnded (class AActor *EndGameFocus, bool bIsWinner) |
| | Replicated function called by GameHasEnded(). 更多...
|
| |
| void | ClientGotoState (FName NewState) |
| | Server uses this to force client into NewState . 更多...
|
| |
|
void | ClientIgnoreLookInput (bool bIgnore) |
| | Calls IgnoreLookInput on client
|
| |
|
void | ClientIgnoreMoveInput (bool bIgnore) |
| | Calls IgnoreMoveInput on client
|
| |
| void | ClientMessage (const FString &S, FName Type=NAME_None, float MsgLifeTime=0.f) |
| | Outputs a message to HUD 更多...
|
| |
| virtual void | ClientMutePlayer (FUniqueNetIdRepl PlayerId) |
| | Tell the client to mute a player for this controller 更多...
|
| |
| void | ClientPlayCameraAnim (class UCameraAnim *AnimToPlay, float Scale=1.f, float Rate=1.f, float BlendInTime=0.f, float BlendOutTime=0.f, bool bLoop=false, bool bRandomStartTime=false, ECameraShakePlaySpace Space=ECameraShakePlaySpace::CameraLocal, FRotator CustomPlaySpace=FRotator::ZeroRotator) |
| | Play the indicated CameraAnim on this camera. 更多...
|
| |
|
void | ClientPlayCameraShake (TSubclassOf< class UCameraShakeBase > Shake, float Scale=1.f, ECameraShakePlaySpace PlaySpace=ECameraShakePlaySpace::CameraLocal, FRotator UserPlaySpaceRot=FRotator::ZeroRotator) |
| | Backwards compatible method, for C++ code
|
| |
|
void | ClientPlayCameraShakeFromSource (TSubclassOf< class UCameraShakeBase > Shake, class UCameraShakeSourceComponent *SourceComponent) |
| | Backwards compatible method, for C++ code
|
| |
| void | ClientPlayForceFeedback (class UForceFeedbackEffect *ForceFeedbackEffect, FForceFeedbackParameters Params=FForceFeedbackParameters()) |
| | Play a force feedback pattern on the player's controller 更多...
|
| |
| void | ClientPlaySound (class USoundBase *Sound, float VolumeMultiplier=1.f, float PitchMultiplier=1.f) |
| | Play sound client-side (so only the client will hear it) 更多...
|
| |
| void | ClientPlaySoundAtLocation (class USoundBase *Sound, FVector Location, float VolumeMultiplier=1.f, float PitchMultiplier=1.f) |
| | Play sound client-side at the specified location 更多...
|
| |
| void | ClientPrepareMapChange (FName LevelName, bool bFirst, bool bLast) |
| | Asynchronously loads the given level in preparation for a streaming map transition. 更多...
|
| |
| void | ClientPrestreamTextures (class AActor *ForcedActor, float ForceDuration, bool bEnableStreaming, int32 CinematicTextureGroups=0) |
| | Forces the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by the specified actor. 更多...
|
| |
|
void | ClientReceiveLocalizedMessage (TSubclassOf< ULocalMessage > Message, int32 Switch=0, class APlayerState *RelatedPlayerState_1=nullptr, class APlayerState *RelatedPlayerState_2=nullptr, class UObject *OptionalObject=nullptr) |
| | send client localized message id
|
| |
|
virtual void | ClientRepObjRef (UObject *Object) |
| | Development RPC for testing object reference replication
|
| |
|
void | ClientReset () |
| | Tell client to reset the PlayerController
|
| |
|
void | ClientRestart (class APawn *NewPawn) |
| | Tell client to restart the level
|
| |
|
void | ClientRetryClientRestart (class APawn *NewPawn) |
| | Assign Pawn to player, but avoid calling ClientRestart if we have already accepted this pawn
|
| |
|
virtual void | ClientReturnToMainMenu (const FString &ReturnReason) |
| | Return the client to the main menu gracefully
|
| |
|
virtual void | ClientReturnToMainMenuWithTextReason (const FText &ReturnReason) |
| | Return the client to the main menu gracefully
|
| |
| void | ClientSetBlockOnAsyncLoading () |
| | Tells the client to block until all pending level streaming actions are complete. 更多...
|
| |
| void | ClientSetCameraFade (bool bEnableFading, FColor FadeColor=FColor(ForceInit), FVector2D FadeAlpha=FVector2D(-1.0f, 0.0f), float FadeTime=0, bool bFadeAudio=false, bool bHoldWhenFinished=false) |
| | Tell client to fade camera @Param bEnableFading - true if we should apply FadeColor/FadeAmount to the screen @Param FadeColor - Color to fade to @Param FadeAlpha - Contains the start fade (X) and end fade (Y) values to apply. 更多...
|
| |
| void | ClientSetCameraMode (FName NewCamMode) |
| | Replicated function to set camera style on client 更多...
|
| |
|
void | ClientSetCinematicMode (bool bInCinematicMode, bool bAffectsMovement, bool bAffectsTurning, bool bAffectsHUD) |
| | Called by the server to synchronize cinematic transitions with the client
|
| |
| void | ClientSetForceMipLevelsToBeResident (class UMaterialInterface *Material, float ForceDuration, int32 CinematicTextureGroups=0) |
| | Forces the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by the specified material. 更多...
|
| |
| void | ClientSetHUD (TSubclassOf< AHUD > NewHUDClass) |
| | Set the client's class of HUD and spawns a new instance of it. 更多...
|
| |
|
void | ClientSetSpectatorWaiting (bool bWaiting) |
| | Indicate that the Spectator is waiting to join/respawn.
|
| |
| void | ClientSetViewTarget (class AActor *A, struct FViewTargetTransitionParams TransitionParams=FViewTargetTransitionParams()) |
| | Set the view target 更多...
|
| |
| void | ClientSpawnCameraLensEffect (TSubclassOf< class AEmitterCameraLensEffectBase > LensEffectEmitterClass) |
| | Spawn a camera lens effect (e.g. 更多...
|
| |
| void | ClientStartCameraShake (TSubclassOf< class UCameraShakeBase > Shake, float Scale=1.f, ECameraShakePlaySpace PlaySpace=ECameraShakePlaySpace::CameraLocal, FRotator UserPlaySpaceRot=FRotator::ZeroRotator) |
| | Play Camera Shake 更多...
|
| |
| void | ClientStartCameraShakeFromSource (TSubclassOf< class UCameraShakeBase > Shake, class UCameraShakeSourceComponent *SourceComponent) |
| | Play Camera Shake localized to a given source 更多...
|
| |
|
void | ClientStartOnlineSession () |
| | Notify client that the session is starting
|
| |
|
void | ClientStopCameraAnim (class UCameraAnim *AnimToStop) |
| | Stop camera animation on client.
|
| |
| void | ClientStopCameraShake (TSubclassOf< class UCameraShakeBase > Shake, bool bImmediately=true) |
| | Stop camera shake on client. 更多...
|
| |
| void | ClientStopCameraShakesFromSource (class UCameraShakeSourceComponent *SourceComponent, bool bImmediately=true) |
| | Stop camera shake on client. 更多...
|
| |
| void | ClientStopForceFeedback (class UForceFeedbackEffect *ForceFeedbackEffect, FName Tag) |
| | Stops a playing force feedback pattern 更多...
|
| |
| void | ClientTeamMessage (class APlayerState *SenderPlayerState, const FString &S, FName Type, float MsgLifeTime=0) |
| |
| void | ClientTravel (const FString &URL, enum ETravelType TravelType, bool bSeamless=false, FGuid MapPackageGuid=FGuid()) |
| | Travel to a different map or IP address. 更多...
|
| |
| void | ClientTravelInternal (const FString &URL, enum ETravelType TravelType, bool bSeamless=false, FGuid MapPackageGuid=FGuid()) |
| | Internal clientside implementation of ClientTravel - use ClientTravel to call this 更多...
|
| |
| virtual void | ClientUnmutePlayer (FUniqueNetIdRepl PlayerId) |
| | Tell the client to unmute a player for this controller 更多...
|
| |
| void | ClientUpdateLevelStreamingStatus (FName PackageName, bool bNewShouldBeLoaded, bool bNewShouldBeVisible, bool bNewShouldBlockOnLoad, int32 LODIndex) |
| | Replicated Update streaming status 更多...
|
| |
| void | ClientUpdateMultipleLevelsStreamingStatus (const TArray< FUpdateLevelStreamingLevelStatus > &LevelStatuses) |
| | Replicated Update streaming status. 更多...
|
| |
| virtual void | ClientVoiceHandshakeComplete () |
| | Tells the client that the server has all the information it needs and that it is ok to start sending voice packets. 更多...
|
| |
|
void | ClientWasKicked (const FText &KickReason) |
| | Notify client they were kicked from the server
|
| |
| virtual FString | ConsoleCommand (const FString &Command, bool bWriteToLog=true) |
| | Executes the Exec() command on the UPlayer object 更多...
|
| |
|
virtual void | ConsoleKey (FKey Key) |
| | Console control commands, useful when remote debugging so you can't touch the console the normal way
|
| |
|
virtual void | CreateTouchInterface () |
| | Create the touch interface, and activate an initial touch interface (if touch interface is desired)
|
| |
| virtual bool | DefaultCanUnpause () |
| | Default implementation of pausing check for 'CanUnpause' delegates 更多...
|
| |
|
virtual void | DelayedPrepareMapChange () |
| | Used to wait until a map change can be prepared when one was already in progress
|
| |
| bool | DeprojectMousePositionToWorld (FVector &WorldLocation, FVector &WorldDirection) const |
| | Convert current mouse 2D position to World Space 3D position and direction. 更多...
|
| |
| bool | DeprojectScreenPositionToWorld (float ScreenX, float ScreenY, FVector &WorldLocation, FVector &WorldDirection) const |
| | Convert 2D screen position to World Space 3D position and direction. 更多...
|
| |
|
virtual void | Destroyed () override |
| | Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending
|
| |
| virtual bool | DestroyNetworkActorHandled () override |
| | Called by DestroyActor(), gives actors a chance to op out of actor destruction Used by network code to have the net connection timeout/cleanup first 更多...
|
| |
| virtual void | DisableInput (class APlayerController *PlayerController) override |
| | Removes this actor from the stack of input being handled by a PlayerController. 更多...
|
| |
|
virtual void | EnableCheats () |
| | Enables cheats within the game
|
| |
| virtual void | EnableInput (class APlayerController *PlayerController) override |
| | Pushes this actor on to the stack of input being handled by a PlayerController. 更多...
|
| |
|
virtual void | EndInactiveState () override |
| | Called when leaving the inactive state
|
| |
|
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| | Overridable function called whenever this actor is being removed from a level
|
| |
|
virtual void | FailedToSpawnPawn () override |
| | GameMode failed to spawn pawn for me.
|
| |
|
virtual void | FellOutOfWorld (const class UDamageType &dmgType) override |
| | Called when the actor falls out of the world 'safely' (below KillZ and such)
|
| |
|
virtual void | FlushPressedKeys () |
| | Flushes the current key state.
|
| |
|
void | ForceSingleNetUpdateFor (class AActor *Target) |
| | forces a full replication check of the specified Actor on only the client that owns this PlayerController this function has no effect if this PC is not a remote client or if the Actor is not relevant to that client
|
| |
|
virtual void | FOV (float NewFOV) |
| | Set the field of view to NewFOV
|
| |
| virtual void | GameHasEnded (class AActor *EndGameFocus=nullptr, bool bIsWinner=false) override |
| | Called from game mode upon end of the game, used to transition to proper state. 更多...
|
| |
| void | GameplayMutePlayer (const FUniqueNetIdRepl &PlayerNetId) |
| | Mutes a remote player on the server and then tells the client to mute 更多...
|
| |
| void | GameplayUnmutePlayer (const FUniqueNetIdRepl &PlayerNetId) |
| | Unmutes a remote player on the server and then tells the client to unmute 更多...
|
| |
| virtual void | GetActorEyesViewPoint (FVector &Location, FRotator &Rotation) const override |
| | Returns the point of view of the actor. 更多...
|
| |
|
virtual bool | GetAudioListenerAttenuationOverridePosition (FVector &OutLocation) const |
| | Gets the attenuation position override.
|
| |
|
virtual void | GetAudioListenerPosition (FVector &OutLocation, FVector &OutFrontDir, FVector &OutRightDir) const |
| | get audio listener position and orientation
|
| |
|
UInterpTrackInstDirector * | GetControllingDirector () |
| | Returns the Matinee director track that's currently possessing this player controller, or nullptr for none
|
| |
| virtual FVector | GetFocalLocation () const |
| | Returns the location the PlayerController is focused on. 更多...
|
| |
|
bool | GetHitResultAtScreenPosition (const FVector2D ScreenPosition, const ECollisionChannel TraceChannel, const FCollisionQueryParams &CollisionQueryParams, FHitResult &HitResult) const |
| | Returns hit results from doing a collision query at a certain location on the screen
|
| |
|
bool | GetHitResultUnderCursorByChannel (ETraceTypeQuery TraceChannel, bool bTraceComplex, FHitResult &HitResult) const |
| | Performs a collision query under the mouse cursor, looking on a trace channel
|
| |
|
bool | GetHitResultUnderCursorForObjects (const TArray< TEnumAsByte< EObjectTypeQuery > > &ObjectTypes, bool bTraceComplex, FHitResult &HitResult) const |
| | Performs a collision query under the mouse cursor, looking for object types
|
| |
|
bool | GetHitResultUnderFingerByChannel (ETouchIndex::Type FingerIndex, ETraceTypeQuery TraceChannel, bool bTraceComplex, FHitResult &HitResult) const |
| | Performs a collision query under the finger, looking on a trace channel
|
| |
|
bool | GetHitResultUnderFingerForObjects (ETouchIndex::Type FingerIndex, const TArray< TEnumAsByte< EObjectTypeQuery > > &ObjectTypes, bool bTraceComplex, FHitResult &HitResult) const |
| | Performs a collision query under the finger, looking for object types
|
| |
|
AHUD * | GetHUD () const |
| | Gets the HUD currently being used by this player controller
|
| |
|
template<class T > |
| T * | GetHUD () const |
| | Templated version of GetHUD, will return nullptr if cast fails
|
| |
| float | GetInputAnalogKeyState (FKey Key) const |
| | Returns the analog value for the given key/button. 更多...
|
| |
|
void | GetInputAnalogStickState (EControllerAnalogStick::Type WhichStick, float &StickX, float &StickY) const |
| | Retrieves the X and Y displacement of the given analog stick.
|
| |
| float | GetInputKeyTimeDown (FKey Key) const |
| | Returns how long the given key/button has been down. 更多...
|
| |
|
void | GetInputMotionState (FVector &Tilt, FVector &RotationRate, FVector &Gravity, FVector &Acceleration) const |
| | Retrieves the current motion state of the player's input device
|
| |
|
void | GetInputMouseDelta (float &DeltaX, float &DeltaY) const |
| | Retrieves how far the mouse moved this frame.
|
| |
| void | GetInputTouchState (ETouchIndex::Type FingerIndex, float &LocationX, float &LocationY, bool &bIsCurrentlyPressed) const |
| | Retrieves the X and Y screen coordinates of the specified touch key. 更多...
|
| |
|
FVector | GetInputVectorKeyState (FKey Key) const |
| | Returns the vector value for the given key/button.
|
| |
|
virtual void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| | Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties
|
| |
|
class ULocalPlayer * | GetLocalPlayer () const |
| | Returns the ULocalPlayer for this controller if it exists, or null otherwise
|
| |
|
virtual float | GetMinRespawnDelay () |
| | Calculate minimal respawn delay
|
| |
|
virtual EMouseCursor::Type | GetMouseCursor () const |
| | Returns the current mouse cursor, or None
|
| |
| bool | GetMousePosition (float &LocationX, float &LocationY) const |
| | Retrieves the X and Y screen coordinates of the mouse cursor. 更多...
|
| |
| virtual class UNetConnection * | GetNetConnection () const override |
| | Get the owning connection used for communicating between client/server 更多...
|
| |
| virtual const AActor * | GetNetOwner () const override |
| | Return the actor responsible for replication, if any. 更多...
|
| |
| virtual class UPlayer * | GetNetOwningPlayer () override |
| | Return the owning UPlayer (if any) of this actor. 更多...
|
| |
| virtual float | GetNetPriority (const FVector &ViewPos, const FVector &ViewDir, AActor *Viewer, AActor *ViewTarget, UActorChannel *InChannel, float Time, bool bLowBandwidth) override |
| | Function used to prioritize actors when deciding which to replicate 更多...
|
| |
| virtual class APlayerState * | GetNextViewablePlayer (int32 dir) |
| | Get next active viewable player in PlayerArray. 更多...
|
| |
|
APawn * | GetPawnOrSpectator () const |
| | Returns the first of GetPawn() or GetSpectatorPawn() that is not nullptr, or nullptr otherwise.
|
| |
| virtual class APlayerController * | GetPlayerControllerForMuting (const FUniqueNetIdRepl &PlayerNetId) |
| | Get a remote player controller on the server for muting 更多...
|
| |
| FString | GetPlayerNetworkAddress () |
| | Get the local players network address 更多...
|
| |
| virtual void | GetPlayerViewPoint (FVector &out_Location, FRotator &out_Rotation) const override |
| | Returns Player's Point of View For the AI this means the Pawn's 'Eyes' ViewPoint For a Human player, this means the Camera's ViewPoint 更多...
|
| |
| virtual void | GetSeamlessTravelActorList (bool bToEntry, TArray< class AActor * > &ActorList) |
| | Called on client during seamless level transitions to get the list of Actors that should be moved into the new level PlayerControllers, Role < ROLE_Authority Actors, and any non-Actors that are inside an Actor that is in the list (i.e. 更多...
|
| |
| FString | GetServerNetworkAddress () |
| | Get the server network address 更多...
|
| |
|
FVector | GetSpawnLocation () const |
| | Get the location used when initially created, or when changing states when there is no pawn or spectator.
|
| |
| ASpectatorPawn * | GetSpectatorPawn () const |
| | Get the Pawn used when spectating. 更多...
|
| |
| class APlayerState * | GetSplitscreenPlayerByIndex (int32 PlayerIndex=1) const |
| | Returns the PlayerState associated with the player at the specified index. 更多...
|
| |
| int32 | GetSplitscreenPlayerCount () const |
| | Returns the number of split-screen players playing on this player's machine. 更多...
|
| |
| void | GetViewportSize (int32 &SizeX, int32 &SizeY) const |
| | Helper to get the size of the HUD canvas for this player controller. 更多...
|
| |
|
virtual class AActor * | GetViewTarget () const override |
| | Get the actor the controller is looking at
|
| |
|
bool | HasClientLoadedCurrentWorld () |
| | returns whether the client has completely loaded the server's current world (valid on server only)
|
| |
| virtual void | InitInputSystem () |
| | Spawn the appropriate class of PlayerInput. 更多...
|
| |
|
virtual bool | InputAxis (FKey Key, float Delta, float DeltaTime, int32 NumSamples, bool bGamepad) |
| | Handles a controller axis input
|
| |
|
virtual bool | InputKey (FKey Key, EInputEvent EventType, float AmountDepressed, bool bGamepad) |
| | Handles a key press
|
| |
|
virtual bool | InputMotion (const FVector &Tilt, const FVector &RotationRate, const FVector &Gravity, const FVector &Acceleration) |
| | Handles motion control
|
| |
|
virtual bool | InputTouch (uint32 Handle, ETouchType::Type Type, const FVector2D &TouchLocation, float Force, FDateTime DeviceTimestamp, uint32 TouchpadIndex) |
| | Handles a touch screen action
|
| |
|
virtual bool | IsFrozen () |
| | Returns true if input should be frozen (whether UnFreeze timer is active)
|
| |
|
bool | IsInputKeyDown (FKey Key) const |
| | Returns true if the given key/button is pressed on the input of the controller (if present)
|
| |
| virtual bool | IsLocalController () const override |
| | Returns whether this Controller is a local controller. 更多...
|
| |
| virtual bool | IsNetRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation) const override |
| | Checks to see if this actor is relevant for a specific network connection 更多...
|
| |
|
bool | IsPaused () const |
| | Returns true if game is currently paused.
|
| |
| virtual bool | IsPlayerMuted (const class FUniqueNetId &PlayerId) |
| | Is the specified player muted by this controlling player for any reason (gameplay, system, etc), check voice interface IsMuted() for system mutes 更多...
|
| |
| bool | IsPrimaryPlayer () const |
| | Wrapper for determining whether this player is the first player on their console. 更多...
|
| |
| bool | IsSplitscreenPlayer (int32 *OutSplitscreenPlayerIndex=nullptr) const |
| | Determines whether this player is playing split-screen. 更多...
|
| |
| void | K2_ClientPlayForceFeedback (class UForceFeedbackEffect *ForceFeedbackEffect, FName Tag, bool bLooping, bool bIgnoreTimeDilation, bool bPlayWhilePaused) |
| | Play a force feedback pattern on the player's controller 更多...
|
| |
|
void | LevelStreamingStatusChanged (class ULevelStreaming *LevelObject, bool bNewShouldBeLoaded, bool bNewShouldBeVisible, bool bNewShouldBlockOnLoad, int32 LODIndex) |
| | Notify player of change to level
|
| |
|
virtual void | LocalTravel (const FString &URL) |
| | Causes the client to travel to the given URL
|
| |
|
FName | NetworkRemapPath (FName InPackageName, bool bReading) |
| | Handles remapping a package name for networking, call on both the client and server when sending package names manually for RPCs
|
| |
|
virtual void | NotifyActorChannelFailure (UActorChannel *ActorChan) |
| | Called on the server when the client sends a message indicating it was unable to initialize an Actor channel, most commonly because the desired Actor's archetype couldn't be serialized the default is to do nothing (Actor simply won't exist on the client), but this function gives the game code an opportunity to try to correct the problem
|
| |
|
virtual void | NotifyDirectorControl (bool bNowControlling, class AMatineeActor *CurrentMatinee) |
| | Notification when a matinee director track starts or stops controlling the ViewTarget of this PlayerController
|
| |
| virtual void | NotifyLoadedWorld (FName WorldPackageName, bool bFinalDest) |
| | Called to notify the server when the client has loaded a new world via seamless traveling 更多...
|
| |
| virtual bool | NotifyServerReceivedClientData (APawn *InPawn, float TimeStamp) |
| | Notify the server that client data was received on the Pawn. 更多...
|
| |
| virtual void | OnActorChannelOpen (class FInBunch &InBunch, class UNetConnection *Connection) override |
| | Allows for a specific response from the actor when the actor channel is opened (client side) 更多...
|
| |
| virtual void | OnNetCleanup (class UNetConnection *Connection) override |
| | Handles cleaning up the associated Actor when killing the connection 更多...
|
| |
| virtual void | OnSerializeNewActor (class FOutBunch &OutBunch) override |
| | SerializeNewActor has just been called on the actor before network replication (server side) 更多...
|
| |
|
void | OnServerStartedVisualLogger (bool bIsLogging) |
| | Notify from server that Visual Logger is recording, to show that information on client about possible performance issues
|
| |
|
virtual void | Pause () |
| | Command to try to pause the game.
|
| |
| virtual void | PawnLeavingGame () |
| | Clean up when a Pawn's player is leaving a game. 更多...
|
| |
| FDynamicForceFeedbackHandle | PlayDynamicForceFeedback (float Intensity, float Duration, bool bAffectsLeftLarge, bool bAffectsLeftSmall, bool bAffectsRightLarge, bool bAffectsRightSmall, EDynamicForceFeedbackAction::Type Action=EDynamicForceFeedbackAction::Start, FDynamicForceFeedbackHandle ActionHandle=0) |
| | Allows playing of a dynamic force feedback event from native code Begins playing when Start is called. 更多...
|
| |
| virtual void | PlayerTick (float DeltaTime) |
| | Processes player input (immediately after PlayerInput gets ticked) and calls UpdateRotation(). 更多...
|
| |
| void | PlayHapticEffect (class UHapticFeedbackEffect_Base *HapticEffect, EControllerHand Hand, float Scale=1.f, bool bLoop=false) |
| | Play a haptic feedback curve on the player's controller 更多...
|
| |
|
virtual bool | PopInputComponent (UInputComponent *Input) |
| | Removes given inputcomponent from the input stack (regardless of if it's the top, actually).
|
| |
|
virtual void | PostInitializeComponents () override |
| | Overridden to create the player replication info and perform other mundane initialization tasks.
|
| |
| virtual void | PostLoad () override |
| | Do any object-specific cleanup required immediately after loading an object. 更多...
|
| |
|
virtual void | PostProcessInput (const float DeltaTime, const bool bGamePaused) |
| | Method called after processing input
|
| |
| virtual bool | PostProcessWorldToScreen (FVector WorldLocation, FVector2D &ScreenLocation, bool bPlayerViewportRelative) const |
| | After successful world to screen projection, allows custom post-processing of the resulting ScreenLocation. 更多...
|
| |
|
virtual void | PostSeamlessTravel () |
| | Called after this player controller has transitioned through seamless travel, but before that player is initialized This is called both when a new player controller is created, and when it is maintained
|
| |
| virtual void | PreClientTravel (const FString &PendingURL, ETravelType TravelType, bool bIsSeamlessTravel) |
| | Called when the local player is about to travel to a new map or IP address. 更多...
|
| |
|
virtual void | PreProcessInput (const float DeltaTime, const bool bGamePaused) |
| | Method called prior to processing input
|
| |
| bool | ProjectWorldLocationToScreen (FVector WorldLocation, FVector2D &ScreenLocation, bool bPlayerViewportRelative=false) const |
| | Convert a World Space 3D position into a 2D Screen Space position. 更多...
|
| |
| bool | ProjectWorldLocationToScreenWithDistance (FVector WorldLocation, FVector &ScreenLocation, bool bPlayerViewportRelative=false) const |
| | Convert a World Space 3D position into a 3D Screen Space position. 更多...
|
| |
|
virtual void | PushInputComponent (UInputComponent *Input) |
| | Adds an inputcomponent to the top of the input stack.
|
| |
| virtual void | ReceivedGameModeClass (TSubclassOf< class AGameModeBase > GameModeClass) |
| | This function will be called to notify the player controller that the world has received its game class. 更多...
|
| |
|
virtual void | ReceivedPlayer () |
| | Called after this PlayerController's viewport/net connection is associated with this player controller.
|
| |
|
virtual void | ReceivedSpectatorClass (TSubclassOf< ASpectatorPawn > SpectatorClass) |
| | Called to notify the controller that the spectator class has been received.
|
| |
|
virtual void | Reset () override |
| | Reset actor to initial state - used when restarting level without reloading.
|
| |
|
virtual void | ResetCameraMode () |
| | Reset Camera Mode to default.
|
| |
|
void | ResetControllerLightColor () |
| | Resets the light color of the player's controller to default
|
| |
|
virtual void | ResetIgnoreInputFlags () override |
| | Reset move and look input ignore flags to defaults
|
| |
|
virtual void | RestartLevel () |
| | Restarts the current level
|
| |
|
virtual void | SafeRetryClientRestart () |
| | Call ClientRetryClientRestart, but only if the current pawn is not the currently acknowledged pawn (and throttled to avoid saturating the network).
|
| |
|
virtual void | SafeServerCheckClientPossession () |
| | Call ServerCheckClientPossession on the server, but only if the current pawn is not the acknowledged pawn (and throttled to avoid saturating the network).
|
| |
|
void | SafeServerUpdateSpectatorState () |
| | Calls ServerSetSpectatorLocation but throttles it to reduce bandwidth and only calls it when necessary.
|
| |
|
virtual void | SeamlessTravelFrom (class APlayerController *OldPC) |
| | Called when seamless traveling and the specified PC is being replaced by this one copy over data that should persist (not called if PlayerController is the same for the from and to GameModes)
|
| |
|
virtual void | SeamlessTravelTo (class APlayerController *NewPC) |
| | Called when seamless traveling and we are being replaced by the specified PC clean up any persistent state (post process chains on LocalPlayers, for example) (not called if PlayerController is the same for the from and to GameModes)
|
| |
| virtual void | SendClientAdjustment () |
| | Called on server at end of tick, to let client Pawns handle updates from the server. 更多...
|
| |
|
virtual void | SendToConsole (const FString &Command) |
| | Sends a command to the console to execute if not shipping version
|
| |
|
void | ServerAcknowledgePossession (class APawn *P) |
| | acknowledge possession of pawn
|
| |
|
void | ServerCamera (FName NewMode) |
| | change mode of camera
|
| |
|
void | ServerChangeName (const FString &S) |
| | Change name of server
|
| |
|
void | ServerCheckClientPossession () |
| | Tells the server to make sure the possessed pawn is in sync with the client.
|
| |
|
void | ServerCheckClientPossessionReliable () |
| | Reliable version of ServerCheckClientPossession to be used when there is no likely danger of spamming the network.
|
| |
|
void | ServerExec (const FString &Msg) |
| | Executes command on server (non shipping builds only)
|
| |
| void | ServerExecRPC (const FString &Msg) |
| | RPC used by ServerExec. 更多...
|
| |
| virtual void | ServerMutePlayer (FUniqueNetIdRepl PlayerId) |
| | Tell the server to mute a player for this controller 更多...
|
| |
| void | ServerNotifyLoadedWorld (FName WorldPackageName) |
| | Called to notify the server when the client has loaded a new world via seamless traveling 更多...
|
| |
|
void | ServerPause () |
| | Replicate pause request to the server
|
| |
|
void | ServerRestartPlayer () |
| | Attempts to restart this player, generally called from the client upon respawn request.
|
| |
|
void | ServerSetSpectatorLocation (FVector NewLoc, FRotator NewRot) |
| | When spectating, updates spectator location/rotation and pings the server to make sure spectating should continue.
|
| |
|
void | ServerSetSpectatorWaiting (bool bWaiting) |
| | Indicate that the Spectator is waiting to join/respawn.
|
| |
|
void | ServerShortTimeout () |
| | Notifies the server that the client has ticked gameplay code, and should no longer get the extended "still loading" timeout grace period
|
| |
|
void | ServerToggleAILogging () |
| | Used by UGameplayDebuggingControllerComponent to replicate messages for AI debugging in network games.
|
| |
| virtual void | ServerUnmutePlayer (FUniqueNetIdRepl PlayerId) |
| | Tell the server to unmute a player for this controller 更多...
|
| |
|
void | ServerUpdateCamera (FVector_NetQuantize CamLoc, int32 CamPitchAndYaw) |
| | If PlayerCamera.bUseClientSideCameraUpdates is set, client will replicate camera positions to the server.
|
| |
| void | ServerUpdateLevelVisibility (const FUpdateLevelVisibilityLevelInfo &LevelVisibility) |
| | Called when the client adds/removes a streamed level. 更多...
|
| |
| void | ServerUpdateMultipleLevelsVisibility (const TArray< FUpdateLevelVisibilityLevelInfo > &LevelVisibilities) |
| | Called when the client adds/removes a streamed level. 更多...
|
| |
|
void | ServerVerifyViewTarget () |
| | Used by client to request server to confirm current viewtarget (server will respond with ClientSetViewTarget() ).
|
| |
|
void | ServerViewNextPlayer () |
| | Move camera to next player on round ended or spectating
|
| |
|
void | ServerViewPrevPlayer () |
| | Move camera to previous player on round ended or spectating
|
| |
|
void | ServerViewSelf (struct FViewTargetTransitionParams TransitionParams=FViewTargetTransitionParams()) |
| | Move camera to current user
|
| |
|
void | SetAsLocalPlayerController () |
| | Designate this player controller as local (public for GameModeBase to use, not expected to be called anywhere else)
|
| |
| void | SetAudioListenerOverride (USceneComponent *AttachToComponent, FVector Location, FRotator Rotation) |
| | Used to override the default positioning of the audio listener 更多...
|
| |
|
virtual void | SetCameraMode (FName NewCamMode) |
| | Set new camera mode
|
| |
| virtual void | SetCinematicMode (bool bInCinematicMode, bool bAffectsMovement, bool bAffectsTurning) |
| | Adjust input based on cinematic mode 更多...
|
| |
| virtual void | SetCinematicMode (bool bInCinematicMode, bool bHidePlayer, bool bAffectsHUD, bool bAffectsMovement, bool bAffectsTurning) |
| | Server/SP only function for changing whether the player is in cinematic mode. 更多...
|
| |
| void | SetControllerLightColor (FColor Color) |
| | Sets the light color of the player's controller 更多...
|
| |
| void | SetControllingDirector (UInterpTrackInstDirector *NewControllingDirector, bool bClientSimulatingViewTarget) |
| | Sets the Matinee director track instance that's currently possessing this player controller 更多...
|
| |
| virtual void | SetDisableHaptics (bool bNewDisabled) |
| | Allows the player controller to disable all haptic requests from being fired, e.g. 更多...
|
| |
| void | SetHapticsByValue (const float Frequency, const float Amplitude, EControllerHand Hand) |
| | Sets the value of the haptics for the specified hand directly, using frequency and amplitude. 更多...
|
| |
| virtual void | SetInitialLocationAndRotation (const FVector &NewLocation, const FRotator &NewRotation) override |
| | Set the initial location and rotation of the controller, as well as the control rotation. 更多...
|
| |
|
virtual void | SetInputMode (const FInputModeDataBase &InData) |
| | Setup an input mode.
|
| |
| void | SetMouseCursorWidget (EMouseCursor::Type Cursor, class UUserWidget *CursorWidget) |
| | Sets the Widget for the Mouse Cursor to display 更多...
|
| |
|
void | SetMouseLocation (const int X, const int Y) |
| | Positions the mouse cursor in screen space, in pixels.
|
| |
|
virtual void | SetName (const FString &S) |
| | Tries to set the player's name to the given name.
|
| |
| void | SetNetSpeed (int32 NewSpeed) |
| | Store the net speed 更多...
|
| |
| virtual bool | SetPause (bool bPause, FCanUnpause CanUnpauseDelegate=FCanUnpause()) |
| | Locally try to pause game (call serverpause to pause network game); returns success indicator. 更多...
|
| |
| virtual void | SetPawn (APawn *InPawn) override |
| | Setter for Pawn. 更多...
|
| |
|
virtual void | SetPlayer (UPlayer *InPlayer) |
| | Associate a new UPlayer with this PlayerController.
|
| |
| virtual void | SetViewTarget (class AActor *NewViewTarget, FViewTargetTransitionParams TransitionParams=FViewTargetTransitionParams()) |
| | Set the view target 更多...
|
| |
| virtual void | SetViewTargetWithBlend (class AActor *NewViewTarget, float BlendTime=0, enum EViewTargetBlendFunction BlendFunc=VTBlend_Linear, float BlendExp=0, bool bLockOutgoing=false) |
| | Set the view target blending with variable control 更多...
|
| |
|
virtual void | SetVirtualJoystickVisibility (bool bVisible) |
| | Set the virtual joystick visibility.
|
| |
| bool | ShouldPerformFullTickWhenPaused () const |
| | Returns true if we fully tick when paused (and if our tick function is enabled when paused). 更多...
|
| |
|
virtual bool | ShouldShowMouseCursor () const |
| | Returns true if the mouse cursor should be shown
|
| |
| virtual void | SmoothTargetViewRotation (APawn *TargetPawn, float DeltaSeconds) |
| | Called client-side to smoothly interpolate received TargetViewRotation (result is in BlendedTargetViewRotation) 更多...
|
| |
|
virtual void | SpawnDefaultHUD () |
| | Spawn a HUD (make sure that PlayerController always has valid HUD, even if ClientSetHUD() hasn't been called
|
| |
|
virtual void | SpawnPlayerCameraManager () |
| | spawn cameras for servers and owning players
|
| |
|
virtual void | StartFire (uint8 FireModeNum=0) |
| | Fire the player's currently selected weapon with the optional firemode.
|
| |
|
virtual void | StartSpectatingOnly () |
| | Start spectating mode, as the only mode allowed.
|
| |
|
void | StartTalking () |
| | Enable voice chat transmission
|
| |
| void | StopHapticEffect (EControllerHand Hand) |
| | Stops a playing haptic feedback curve 更多...
|
| |
|
void | StopTalking () |
| | Disable voice chat transmission
|
| |
|
virtual void | SwitchLevel (const FString &URL) |
| | SwitchLevel to the given MapURL.
|
| |
| virtual void | TickActor (float DeltaTime, enum ELevelTick TickType, FActorTickFunction &ThisTickFunction) override |
| | Dispatches the once-per frame Tick() function for this actor 更多...
|
| |
| virtual void | ToggleSpeaking (bool bInSpeaking) |
| | Toggle voice chat on and off 更多...
|
| |
|
virtual void | UnFreeze () |
| | Timer used by RoundEnded and Inactive states to accept player input again
|
| |
| virtual void | UpdateCameraManager (float DeltaSeconds) |
| | Update the camera manager; this is called after all actors have been ticked. 更多...
|
| |
| virtual void | UpdateHiddenActors (const FVector &ViewLocation) |
| | Builds a list of actors that are hidden based upon gameplay 更多...
|
| |
| virtual void | UpdateHiddenComponents (const FVector &ViewLocation, TSet< FPrimitiveComponentId > &) |
| | Builds a list of components that are hidden based upon gameplay 更多...
|
| |
|
virtual void | UpdatePing (float InPing) |
| | Takes ping updates from the net driver (both clientside and serverside), and passes them on to PlayerState::UpdatePing
|
| |
| virtual void | UpdateRotation (float DeltaTime) |
| | Updates the rotation of player, based on ControlRotation after RotationInput has been applied. 更多...
|
| |
| virtual bool | UseShortConnectTimeout () const override |
| | Used by the net connection to determine if a net owning actor should switch to using the shortened timeout value 更多...
|
| |
| virtual void | ViewAPlayer (int32 dir) |
| | View next active player in PlayerArray. 更多...
|
| |
|
bool | WasInputKeyJustPressed (FKey Key) const |
| | Returns true if the given key/button was up last frame and down this frame.
|
| |
|
bool | WasInputKeyJustReleased (FKey Key) const |
| | Returns true if the given key/button was down last frame and up this frame.
|
| |
|
| AController (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get()) |
| | Default Constructor
|
| |
| class APlayerController * | CastToPlayerController () |
| | DEPRECATED! Use the standard "Cast To" node instead. 更多...
|
| |
|
virtual void | ChangeState (FName NewState) |
| | Change the current state to named state
|
| |
| virtual void | CleanupPlayerState () |
| | Called from Destroyed(). 更多...
|
| |
| void | ClientSetLocation (FVector NewLocation, FRotator NewRotation) |
| | Replicated function to set the pawn location and rotation, allowing server to force (ex. 更多...
|
| |
|
void | ClientSetRotation (FRotator NewRotation, bool bResetCamera=false) |
| | Replicated function to set the pawn rotation, allowing the server to force.
|
| |
|
virtual void | CurrentLevelUnloaded () |
| | Called when the level this controller is in is unloaded via streaming.
|
| |
|
virtual void | Destroyed () override |
| | Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending
|
| |
|
virtual void | FailedToSpawnPawn () |
| | GameMode failed to spawn pawn for me.
|
| |
| virtual void | GameHasEnded (class AActor *EndGameFocus=nullptr, bool bIsWinner=false) |
| | Called from game mode upon end of the game, used to transition to proper state. 更多...
|
| |
| virtual void | GetActorEyesViewPoint (FVector &out_Location, FRotator &out_Rotation) const override |
| | Returns the point of view of the actor. 更多...
|
| |
|
FORCEINLINE ACharacter * | GetCharacter () const |
| | Getter for Character
|
| |
| virtual FRotator | GetControlRotation () const |
| | Get the control rotation. 更多...
|
| |
|
virtual FRotator | GetDesiredRotation () const |
| | Get the desired pawn target rotation
|
| |
|
virtual FString | GetHumanReadableName () const override |
| | Returns the human readable string representation of an object.
|
| |
|
virtual void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| | Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties
|
| |
|
FORCEINLINE APawn * | GetPawn () const |
| | Getter for Pawn
|
| |
|
template<class T > |
| T * | GetPawn () const |
| | Templated version of GetPawn, will return nullptr if cast fails
|
| |
| template<class T > |
| T * | GetPlayerState () const |
| |
| virtual void | GetPlayerViewPoint (FVector &Location, FRotator &Rotation) const |
| | Returns Player's Point of View For the AI this means the Pawn's 'Eyes' ViewPoint For a Human player, this means the Camera's ViewPoint 更多...
|
| |
| FName | GetStateName () const |
| |
|
virtual AActor * | GetViewTarget () const |
| | Get the actor the controller is looking at
|
| |
|
virtual void | InitNavigationControl (UObject *&PathFollowingComp) |
| | prepares path following component
|
| |
|
virtual void | InitPlayerState () |
| | spawns and initializes the PlayerState for this Controller
|
| |
|
virtual void | InstigatedAnyDamage (float Damage, const class UDamageType *DamageType, class AActor *DamagedActor, class AActor *DamageCauser) |
| | Called when this controller instigates ANY damage
|
| |
| bool | IsInState (FName InStateName) const |
| | States (uses FNames for replication, correlated to state flags) 更多...
|
| |
| virtual bool | IsLocalController () const |
| | Returns whether this Controller is a local controller. 更多...
|
| |
| bool | IsLocalPlayerController () const |
| | Returns whether this Controller is a locally controlled PlayerController. 更多...
|
| |
|
virtual bool | IsLookInputIgnored () const |
| | Returns true if look input is ignored.
|
| |
|
virtual bool | IsMoveInputIgnored () const |
| | Returns true if movement input is ignored.
|
| |
| bool | IsPlayerController () const |
| | Returns whether this Controller is a PlayerController. 更多...
|
| |
|
virtual void | K2_DestroyActor () override |
| | Destroy the actor
|
| |
|
APawn * | K2_GetPawn () const |
| | Return the Pawn that is currently 'controlled' by this PlayerController
|
| |
| virtual bool | LineOfSightTo (const class AActor *Other, FVector ViewPoint=FVector(ForceInit), bool bAlternateChecks=false) const |
| | Checks line to center and top of other actor 更多...
|
| |
|
virtual void | OnRep_Pawn () |
| | Replication Notification Callbacks
|
| |
| virtual void | PawnPendingDestroy (APawn *inPawn) |
| | Called to unpossess our pawn because it is going to be destroyed. 更多...
|
| |
| virtual void | Possess (APawn *InPawn) final |
| | Handles attaching this controller to the specified pawn. 更多...
|
| |
|
virtual void | PostInitializeComponents () override |
| | Overridden to create the player replication info and perform other mundane initialization tasks.
|
| |
|
virtual void | Reset () override |
| | Reset actor to initial state - used when restarting level without reloading.
|
| |
|
virtual void | ResetIgnoreInputFlags () |
| | Reset move and look input ignore flags.
|
| |
|
virtual void | ResetIgnoreLookInput () |
| | Stops ignoring look input by resetting the ignore look input state.
|
| |
|
virtual void | ResetIgnoreMoveInput () |
| | Stops ignoring move input by resetting the ignore move input state.
|
| |
| virtual void | SetControlRotation (const FRotator &NewRotation) |
| | Set the control rotation. 更多...
|
| |
| virtual void | SetIgnoreLookInput (bool bNewLookInput) |
| | Locks or unlocks look input, consecutive calls stack up and require the same amount of calls to undo, or can all be undone using ResetIgnoreLookInput. 更多...
|
| |
| virtual void | SetIgnoreMoveInput (bool bNewMoveInput) |
| | Locks or unlocks movement input, consecutive calls stack up and require the same amount of calls to undo, or can all be undone using ResetIgnoreMoveInput. 更多...
|
| |
| virtual void | SetInitialLocationAndRotation (const FVector &NewLocation, const FRotator &NewRotation) |
| | Set the initial location and rotation of the controller, as well as the control rotation. 更多...
|
| |
| virtual void | SetPawn (APawn *InPawn) |
| | Setter for Pawn. 更多...
|
| |
|
void | SetPawnFromRep (APawn *InPawn) |
| | Calls SetPawn and RepNotify locally
|
| |
|
virtual void | StopMovement () |
| | Aborts the move the controller is currently performing
|
| |
| virtual void | TickActor (float DeltaTime, enum ELevelTick TickType, FActorTickFunction &ThisTickFunction) override |
| | Dispatches the once-per frame Tick() function for this actor 更多...
|
| |
|
virtual void | UnPossess () final |
| | Called to unpossess our pawn for any reason that is not the pawn being destroyed (destruction handled by PawnDestroyed()).
|
| |
|
virtual void | UpdateNavigationComponents () |
| | If controller has any navigation-related components then this function makes them update their cached data DEPRECATED: this functionality has been taken over by PathFollowingComponent by observing newly possessed pawns (via OnNewPawn)
|
| |
|
| AActor () |
| | Default constructor for AActor
|
| |
|
| AActor (const FObjectInitializer &ObjectInitializer) |
| | Constructor for AActor that takes an ObjectInitializer for backward compatibility
|
| |
| float | ActorGetDistanceToCollision (const FVector &Point, ECollisionChannel TraceChannel, FVector &ClosestPointOnCollision, UPrimitiveComponent **OutPrimitiveComponent=nullptr) const |
| | returns Distance to closest Body Instance surface. 更多...
|
| |
|
bool | ActorHasTag (FName Tag) const |
| | See if this actor's Tags array contains the supplied name tag
|
| |
| bool | ActorLineTraceSingle (struct FHitResult &OutHit, const FVector &Start, const FVector &End, ECollisionChannel TraceChannel, const struct FCollisionQueryParams &Params) const |
| | Trace a ray against the Components of this Actor and return the first blocking hit 更多...
|
| |
| FORCEINLINE const FTransform & | ActorToWorld () const |
| | Get the local-to-world transform of the RootComponent. 更多...
|
| |
| UActorComponent * | AddComponent (FName TemplateName, bool bManualAttachment, const FTransform &RelativeTransform, const UObject *ComponentTemplateContext, bool bDeferredFinish=false) |
| | Creates a new component and assigns ownership to the Actor this is called for. 更多...
|
| |
| UActorComponent * | AddComponentByClass (TSubclassOf< UActorComponent > Class, bool bManualAttachment, const FTransform &RelativeTransform, bool bDeferredFinish) |
| | Creates a new component and assigns ownership to the Actor this is called for. 更多...
|
| |
| void | AddControllingMatineeActor (AMatineeActor &InMatineeActor) |
| | Adds a controlling matinee actor for use during matinee playback 更多...
|
| |
|
void | AddInstanceComponent (UActorComponent *Component) |
| | Adds a component to the instance components array
|
| |
| void | AddOwnedComponent (UActorComponent *Component) |
| | Puts a component in to the OwnedComponents array of the Actor. 更多...
|
| |
| virtual void | AddTickPrerequisiteActor (AActor *PrerequisiteActor) |
| | Make this actor tick after PrerequisiteActor. 更多...
|
| |
| virtual void | AddTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent) |
| | Make this actor tick after PrerequisiteComponent. 更多...
|
| |
|
FORCEINLINE bool | AllowReceiveTickEventOnDedicatedServer () const |
| | Return the value of bAllowReceiveTickEventOnDedicatedServer, indicating whether the Blueprint ReceiveTick() event will occur on dedicated servers.
|
| |
| virtual void | ApplyWorldOffset (const FVector &InOffset, bool bWorldShift) |
| | Called by owning level to shift an actor location and all relevant data structures by specified delta 更多...
|
| |
| void | AttachToActor (AActor *ParentActor, const FAttachmentTransformRules &AttachmentRules, FName SocketName=NAME_None) |
| | Attaches the RootComponent of this Actor to the RootComponent of the supplied actor, optionally at a named socket. 更多...
|
| |
| void | AttachToComponent (USceneComponent *Parent, const FAttachmentTransformRules &AttachmentRules, FName SocketName=NAME_None) |
| | Attaches the RootComponent of this Actor to the supplied component, optionally at a named socket. 更多...
|
| |
| virtual void | BecomeViewTarget (class APlayerController *PC) |
| | Called when this actor becomes the given PlayerController's ViewTarget. 更多...
|
| |
| virtual void | BeginDestroy () override |
| | Called before destroying the object. 更多...
|
| |
| virtual void | CalcCamera (float DeltaTime, struct FMinimalViewInfo &OutResult) |
| | Calculate camera view point, when viewing this actor. 更多...
|
| |
| virtual FBox | CalculateComponentsBoundingBoxInLocalSpace (bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| | Calculates the actor space bounding box of all components in this Actor. 更多...
|
| |
|
void | CallPreReplication (UNetDriver *NetDriver) |
| | Called by the networking system to call PreReplication on this actor and its components using the given NetDriver to find or create RepChangedPropertyTrackers.
|
| |
| virtual bool | CallRemoteFunction (UFunction *Function, void *Parameters, FOutParmRec *OutParms, FFrame *Stack) override |
| | Call the actor's function remotely 更多...
|
| |
| virtual bool | CanBeBaseForCharacter (class APawn *Pawn) const |
| | Return true if the given Pawn can be "based" on this actor (ie walk on it). 更多...
|
| |
| bool | CanBeDamaged () const |
| | Gets the literal value of bCanBeDamaged. 更多...
|
| |
| virtual bool | CanBeInCluster () const override |
| | Called during cluster construction if the object can be added to a cluster 更多...
|
| |
|
FORCEINLINE bool | CanEverTick () const |
| | Accessor for the value of bCanEverTick
|
| |
|
void | CheckComponentInstanceName (const FName InName) |
| | Checks for and resolve any name conflicts prior to instancing a new Blueprint Component.
|
| |
| virtual bool | CheckDefaultSubobjectsInternal () const override |
| | Checks default sub-object assumptions. 更多...
|
| |
| virtual bool | CheckStillInWorld () |
| | This will check to see if the Actor is still in the world. 更多...
|
| |
| void | ClearComponentOverlaps () |
| | Dispatch all EndOverlap for all of the Actor's PrimitiveComponents. 更多...
|
| |
|
virtual void | ClearCrossLevelReferences () |
| | Do anything needed to clear out cross level references; Called from ULevel::PreSave
|
| |
|
void | ClearInstanceComponents (bool bDestroyComponents) |
| | Clears the instance components array
|
| |
|
void | CopyRemoteRoleFrom (const AActor *CopyFromActor) |
| | Copies RemoteRole from another Actor and adds this actor to the list of network actors if necessary.
|
| |
|
UActorComponent * | CreateComponentFromTemplate (UActorComponent *Template, const FName InName=NAME_None) |
| | Util to create a component based on a template
|
| |
| void | DebugShowComponentHierarchy (const TCHAR *Info, bool bShowPosition=true) |
| | Debug helper to show the component hierarchy of this actor. 更多...
|
| |
|
void | DebugShowOneComponentHierarchy (USceneComponent *SceneComp, int32 &NestLevel, bool bShowPosition) |
| | Debug helper for showing the component hierarchy of one component
|
| |
| bool | Destroy (bool bNetForce=false, bool bShouldModifyLevel=true) |
| | Destroy this actor. 更多...
|
| |
|
void | DestroyConstructedComponents () |
| | Destroys the constructed components.
|
| |
|
virtual void | Destroyed () |
| | Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending
|
| |
| virtual bool | DestroyNetworkActorHandled () |
| | Called by DestroyActor(), gives actors a chance to op out of actor destruction Used by network code to have the net connection timeout/cleanup first 更多...
|
| |
| void | DetachAllSceneComponents (class USceneComponent *InParentComponent, const FDetachmentTransformRules &DetachmentRules) |
| | Detaches all SceneComponents in this Actor from the supplied parent SceneComponent. 更多...
|
| |
| void | DetachFromActor (const FDetachmentTransformRules &DetachmentRules) |
| | Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to. 更多...
|
| |
|
void | DetachRootComponentFromParent (bool bMaintainWorldPosition=true) |
| | DEPRECATED - Use DetachFromActor() instead
|
| |
|
void | DisableComponentsSimulatePhysics () |
| | Stop all simulation from all components in this actor
|
| |
| virtual void | DisableInput (class APlayerController *PlayerController) |
| | Removes this actor from the stack of input being handled by a PlayerController. 更多...
|
| |
|
void | DispatchBeginPlay (bool bFromLevelStreaming=false) |
| | Initiate a begin play call on this Actor, will handle calling in the correct order.
|
| |
|
void | DispatchBlockingHit (UPrimitiveComponent *MyComp, UPrimitiveComponent *OtherComp, bool bSelfMoved, FHitResult const &Hit) |
| | Call ReceiveHit, as well as delegates on Actor and Component
|
| |
|
virtual void | DispatchPhysicsCollisionHit (const struct FRigidBodyCollisionInfo &MyInfo, const struct FRigidBodyCollisionInfo &OtherInfo, const FCollisionImpactData &RigidCollisionData) |
| | Dispatches ReceiveHit virtual and OnComponentHit delegate
|
| |
| virtual void | DisplayDebug (class UCanvas *Canvas, const class FDebugDisplayInfo &DebugDisplay, float &YL, float &YPos) |
| | Draw important Actor variables on canvas. 更多...
|
| |
|
void | DrawDebugComponents (FColor const &BaseColor=FColor::White) const |
| | Debug rendering to visualize the component tree for this actor.
|
| |
| virtual void | EnableInput (class APlayerController *PlayerController) |
| | Pushes this actor on to the stack of input being handled by a PlayerController. 更多...
|
| |
| virtual void | EndViewTarget (class APlayerController *PC) |
| | Called when this actor is no longer the given PlayerController's ViewTarget. 更多...
|
| |
|
void | ExchangeNetRoles (bool bRemoteOwner) |
| | Swaps Role and RemoteRole if client
|
| |
| bool | ExecuteConstruction (const FTransform &Transform, const struct FRotationConversionCache *TransformRotationCache, const class FComponentInstanceDataCache *InstanceDataCache, bool bIsDefaultTransform=false) |
| | Run any construction script for this Actor. 更多...
|
| |
|
virtual void | FellOutOfWorld (const class UDamageType &dmgType) |
| | Called when the actor falls out of the world 'safely' (below KillZ and such)
|
| |
|
template<class T > |
| T * | FindComponentByClass () const |
| | Templatized version of FindComponentByClass that handles casting for you
|
| |
|
virtual UActorComponent * | FindComponentByClass (const TSubclassOf< UActorComponent > ComponentClass) const |
| | Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass
|
| |
| FNetworkObjectInfo * | FindNetworkObjectInfo () |
| | Find the FNetworkObjectInfo struct associated with this actor (for the main NetDriver). 更多...
|
| |
| FNetworkObjectInfo * | FindOrAddNetworkObjectInfo () |
| | Find the FNetworkObjectInfo struct associated with this actor (for the main NetDriver). 更多...
|
| |
| void | FinishAddComponent (UActorComponent *Component, bool bManualAttachment, const FTransform &RelativeTransform) |
| | Completes the creation of a new actor component. 更多...
|
| |
| void | FinishAndRegisterComponent (UActorComponent *Component) |
| | Helper function to register the specified component, and add it to the serialized components array 更多...
|
| |
|
void | FinishSpawning (const FTransform &Transform, bool bIsDefaultTransform=false, const FComponentInstanceDataCache *InstanceDataCache=nullptr) |
| | Called to finish the spawning process, generally in the case of deferred spawning
|
| |
|
void | FlushNetDormancy () |
| | Forces dormant actor to replicate but doesn't change NetDormancy state (i.e., they will go dormant again if left dormant)
|
| |
|
virtual void | ForceNetRelevant () |
| | Forces this actor to be net relevant if it is not already by default
|
| |
|
virtual void | ForceNetUpdate () |
| | Force actor to be updated to clients/demo net drivers
|
| |
|
void | ForcePropertyCompare () |
| | Forces properties on this actor to do a compare for one frame (rather than share shadow state)
|
| |
| void | ForEachAttachedActors (TFunctionRef< bool(class AActor *)> Functor) const |
| | Call a functor for Actors which are attached directly to a component in this actor. 更多...
|
| |
| template<class ComponentType , typename Func > |
| void | ForEachComponent (bool bIncludeFromChildActors, Func InFunc) const |
| | Calls the compile-time lambda on each component of the specified type 更多...
|
| |
| template<typename Func > |
| void | ForEachComponent (bool bIncludeFromChildActors, Func InFunc) const |
| | Calls the compile-time lambda on each valid component 更多...
|
| |
|
virtual void | GatherCurrentMovement () |
| | Fills ReplicatedMovement property
|
| |
| void | GetActorBounds (bool bOnlyCollidingComponents, FVector &Origin, FVector &BoxExtent, bool bIncludeFromChildActors=false) const |
| | Returns the bounding box of all components that make up this Actor (excluding ChildActorComponents). 更多...
|
| |
|
bool | GetActorEnableCollision () const |
| | Get current state of collision for the whole actor
|
| |
| virtual void | GetActorEyesViewPoint (FVector &OutLocation, FRotator &OutRotation) const |
| | Returns the point of view of the actor. 更多...
|
| |
| FVector | GetActorForwardVector () const |
| | Get the forward (X) vector (length 1.0) from this Actor, in world space. 更多...
|
| |
|
FORCEINLINE FVector | GetActorLocation () const |
| | Returns the location of the RootComponent of this Actor
|
| |
|
FORCEINLINE FQuat | GetActorQuat () const |
| | Returns the quaternion of the RootComponent of this Actor
|
| |
|
FVector | GetActorRelativeScale3D () const |
| | Return the actor's relative scale 3d
|
| |
| FVector | GetActorRightVector () const |
| | Get the right (Y) vector (length 1.0) from this Actor, in world space. 更多...
|
| |
|
FORCEINLINE FRotator | GetActorRotation () const |
| | Returns the rotation of the RootComponent of this Actor
|
| |
|
FORCEINLINE FVector | GetActorScale () const |
| | Returns the scale of the RootComponent of this Actor
|
| |
|
FVector | GetActorScale3D () const |
| | Returns the Actor's world-space scale.
|
| |
|
float | GetActorTickInterval () const |
| | Returns the tick interval of this actor's primary tick function
|
| |
| float | GetActorTimeDilation () const |
| | Get ActorTimeDilation - this can be used for input control or speed control for slomo. 更多...
|
| |
|
float | GetActorTimeDilation (const UWorld &ActorWorld) const |
| | More efficient version that takes the Actor's current world.
|
| |
|
FORCEINLINE const FTransform & | GetActorTransform () const |
| | Returns the transform of the RootComponent of this Actor
|
| |
| FVector | GetActorUpVector () const |
| | Get the up (Z) vector (length 1.0) from this Actor, in world space. 更多...
|
| |
| void | GetAllChildActors (TArray< AActor * > &ChildActors, bool bIncludeDescendants=true) const |
| | Returns a list of all actors spawned by our Child Actor Components, including children of children. 更多...
|
| |
|
void | GetAttachedActors (TArray< AActor * > &OutActors, bool bResetArray=true) const |
| | Find all Actors which are attached directly to a component in this actor
|
| |
|
const struct FRepAttachment & | GetAttachmentReplication () const |
| | Get read-only access to current AttachmentReplication.
|
| |
| AActor * | GetAttachParentActor () const |
| | Walk up the attachment chain from RootComponent until we encounter a different actor, and return it. 更多...
|
| |
| FName | GetAttachParentSocketName () const |
| | Walk up the attachment chain from RootComponent until we encounter a different actor, and return the socket name in the component. 更多...
|
| |
|
UActorComponent * | GetComponentByClass (TSubclassOf< UActorComponent > ComponentClass) const |
| | Searches components array and returns first encountered component of the specified class
|
| |
| const TSet< UActorComponent * > & | GetComponents () const |
| | Get a direct reference to the Components set rather than a copy with the null pointers removed. 更多...
|
| |
| template<class T , class AllocatorType > |
| void | GetComponents (TArray< T *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| | Get all components derived from class 'T' and fill in the OutComponents array with the result. 更多...
|
| |
| template<class AllocatorType > |
| void | GetComponents (TArray< UActorComponent *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| | UActorComponent specialization of GetComponents() to avoid unnecessary casts. 更多...
|
| |
| template<class AllocatorType > |
| void | GetComponents (TSubclassOf< UActorComponent > ComponentClass, TArray< UActorComponent *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| | Get all components derived from specified ComponentClass and fill in the OutComponents array with the result. 更多...
|
| |
| virtual FBox | GetComponentsBoundingBox (bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| | Returns the world space bounding box of all components in this Actor. 更多...
|
| |
| virtual void | GetComponentsBoundingCylinder (float &CollisionRadius, float &CollisionHalfHeight, bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| | Get half-height/radius of a big axis-aligned cylinder around this actors registered colliding components, or all registered components if bNonColliding is false. 更多...
|
| |
|
TArray< UActorComponent * > | GetComponentsByInterface (TSubclassOf< UInterface > Interface) const |
| | Gets all the components that implements the given interface.
|
| |
|
TArray< UActorComponent * > | GetComponentsByTag (TSubclassOf< UActorComponent > ComponentClass, FName Tag) const |
| | Gets all the components that inherit from the given class with a given tag.
|
| |
| virtual ECollisionResponse | GetComponentsCollisionResponseToChannel (ECollisionChannel Channel) const |
| | Get Collision Response to the passed in Channel for all components It returns Max of state - i.e. 更多...
|
| |
| virtual USceneComponent * | GetDefaultAttachComponent () const |
| | Returns this actor's default attachment component for attaching children to 更多...
|
| |
|
float | GetDistanceTo (const AActor *OtherActor) const |
| | Returns the distance from this Actor to OtherActor.
|
| |
| float | GetDotProductTo (const AActor *OtherActor) const |
| | Returns the dot product from this Actor to OtherActor. 更多...
|
| |
| virtual int32 | GetFunctionCallspace (UFunction *Function, FFrame *Stack) override |
| | Return the space this function should be called. 更多...
|
| |
|
class UGameInstance * | GetGameInstance () const |
| | Gets the GameInstance that ultimately contains this actor.
|
| |
| template<class T > |
| T * | GetGameInstance () const |
| | Gets the GameInstance that ultimately contains this actor cast to the template type. 更多...
|
| |
|
float | GetGameTimeSinceCreation () const |
| | The number of seconds (in game time) since this Actor was created, relative to Get Game Time In Seconds.
|
| |
|
float | GetHorizontalDistanceTo (const AActor *OtherActor) const |
| | Returns the distance from this Actor to OtherActor, ignoring Z.
|
| |
| float | GetHorizontalDotProductTo (const AActor *OtherActor) const |
| | Returns the dot product from this Actor to OtherActor, ignoring Z. 更多...
|
| |
|
virtual FString | GetHumanReadableName () const |
| | Returns the human readable string representation of an object.
|
| |
|
float | GetInputAxisKeyValue (const FKey InputAxisKey) const |
| | Gets the value of the input axis key if input is enabled for this actor.
|
| |
|
float | GetInputAxisValue (const FName InputAxisName) const |
| | Gets the value of the input axis if input is enabled for this actor.
|
| |
|
FVector | GetInputVectorAxisValue (const FKey InputAxisKey) const |
| | Gets the value of the input axis key if input is enabled for this actor.
|
| |
|
const TArray< UActorComponent * > & | GetInstanceComponents () const |
| | Returns the instance components array
|
| |
|
APawn * | GetInstigator () const |
| | Returns the instigator for this actor, or nullptr if there is none.
|
| |
| template<class T > |
| T * | GetInstigator () const |
| | Get the instigator, cast as a specific class. 更多...
|
| |
|
AController * | GetInstigatorController () const |
| | Returns the instigator's controller for this actor, or nullptr if there is none.
|
| |
| template<class T > |
| T * | GetInstigatorController () const |
| | Returns the instigator's controller, cast as a specific class. 更多...
|
| |
|
FORCEINLINE bool | GetIsReplicated () const |
| | Returns whether replication is enabled or not.
|
| |
|
virtual float | GetLastRenderTime () const |
| | Returns the most recent time any of this actor's components were rendered
|
| |
|
ULevel * | GetLevel () const |
| | Return the ULevel that this Actor is part of.
|
| |
| virtual float | GetLifeSpan () const |
| | Get the remaining lifespan of this actor. 更多...
|
| |
|
void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| | Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties
|
| |
|
ENetRole | GetLocalRole () const |
| | Returns how much control the local machine has over this actor.
|
| |
| virtual class UNetConnection * | GetNetConnection () const |
| | Get the owning connection used for communicating between client/server 更多...
|
| |
| virtual bool | GetNetDormancy (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *InChannel, float Time, bool bLowBandwidth) |
| | Returns true if the actor should be dormant for a specific net connection. 更多...
|
| |
|
class UNetDriver * | GetNetDriver () const |
| | Returns the net driver that this actor is bound to, may be null
|
| |
|
FName | GetNetDriverName () const |
| | Returns name of the net driver associated with this actor (all RPCs will go out via this connection)
|
| |
| ENetMode | GetNetMode () const |
| | Get the network mode (dedicated server, client, standalone, etc) for this actor. 更多...
|
| |
| virtual const AActor * | GetNetOwner () const |
| | Return the actor responsible for replication, if any. 更多...
|
| |
| virtual class UPlayer * | GetNetOwningPlayer () |
| | Return the owning UPlayer (if any) of this actor. 更多...
|
| |
| virtual float | GetNetPriority (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *InChannel, float Time, bool bLowBandwidth) |
| | Function used to prioritize actors when deciding which to replicate 更多...
|
| |
| void | GetOverlappingActors (TArray< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const |
| | Returns list of actors this actor is overlapping (any component overlapping any component). 更多...
|
| |
| void | GetOverlappingActors (TSet< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const |
| | Returns set of actors this actor is overlapping (any component overlapping any component). 更多...
|
| |
|
void | GetOverlappingComponents (TArray< UPrimitiveComponent * > &OverlappingComponents) const |
| | Returns list of components this actor is overlapping.
|
| |
|
void | GetOverlappingComponents (TSet< UPrimitiveComponent * > &OverlappingComponents) const |
| | Returns set of components this actor is overlapping.
|
| |
|
AActor * | GetOwner () const |
| | Get the owner of this Actor, used primarily for network replication.
|
| |
|
template<class T > |
| T * | GetOwner () const |
| | Templated version of GetOwner(), will return nullptr if cast fails
|
| |
|
AActor * | GetParentActor () const |
| | If this Actor was created by a Child Actor Component returns the Actor that owns that Child Actor Component
|
| |
|
UChildActorComponent * | GetParentComponent () const |
| | If this Actor was created by a Child Actor Component returns that Child Actor Component
|
| |
|
FVector | GetPlacementExtent () const |
| | Get the extent used when placing this actor in the editor, used for 'pulling back' hit.
|
| |
|
ENetRole | GetRemoteRole () const |
| | Returns how much control the remote machine has over this actor.
|
| |
| virtual float | GetReplayPriority (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *const InChannel, float Time) |
| | Similar to GetNetPriority, but will only be used for prioritizing actors while recording a replay. 更多...
|
| |
|
const TArray< UActorComponent * > & | GetReplicatedComponents () const |
| | Returns a constant reference to the replicated components set
|
| |
| const FRepMovement & | GetReplicatedMovement () const |
| | Gets the literal value of ReplicatedMovement. 更多...
|
| |
| FRepMovement & | GetReplicatedMovement_Mutable () |
| | Gets a reference to ReplicatedMovement with the expectation that it will be modified. 更多...
|
| |
|
FORCEINLINE USceneComponent * | GetRootComponent () const |
| | Returns this actor's root component.
|
| |
| virtual void | GetSimpleCollisionCylinder (float &CollisionRadius, float &CollisionHalfHeight) const |
| | Get axis-aligned cylinder around this actor, used for simple collision checks (ie Pawns reaching a destination). 更多...
|
| |
|
FVector | GetSimpleCollisionCylinderExtent () const |
| | Returns collision extents vector for this Actor, based on GetSimpleCollisionCylinder().
|
| |
|
float | GetSimpleCollisionHalfHeight () const |
| | Returns the half height of the collision cylinder from GetSimpleCollisionCylinder().
|
| |
|
float | GetSimpleCollisionRadius () const |
| | Returns the radius of the collision cylinder from GetSimpleCollisionCylinder().
|
| |
|
float | GetSquaredDistanceTo (const AActor *OtherActor) const |
| | Returns the squared distance from this Actor to OtherActor.
|
| |
|
virtual void | GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList) override |
| | Returns a list of sub-objects that have stable names for networking
|
| |
| virtual FVector | GetTargetLocation (AActor *RequestedBy=nullptr) const |
| | Returns the optimal location to fire weapons at this actor 更多...
|
| |
|
bool | GetTearOff () const |
| | If true, this actor is no longer replicated to new clients, and is "torn off" (becomes a ROLE_Authority) on clients to which it was being replicated.
|
| |
|
bool | GetTickableWhenPaused () |
| | Gets whether this actor can tick when paused.
|
| |
| const FTransform & | GetTransform () const |
| | Get the actor-to-world transform. 更多...
|
| |
| EActorUpdateOverlapsMethod | GetUpdateOverlapsMethodDuringLevelStreaming () const |
| | Get the method used to UpdateOverlaps() when loaded via level streaming. 更多...
|
| |
|
virtual FVector | GetVelocity () const |
| | Returns velocity (in cm/s (Unreal Units/second) of the rootcomponent if it is either using physics or has an associated MovementComponent
|
| |
|
float | GetVerticalDistanceTo (const AActor *OtherActor) const |
| | Returns the distance from this Actor to OtherActor, ignoring XY.
|
| |
|
virtual UWorld * | GetWorld () const override |
| | Getter for the cached world pointer, will return null if the actor is not actually spawned in a level
|
| |
|
class AWorldSettings * | GetWorldSettings () const |
| | Returns the WorldSettings for the World the actor is in If you'd like to know what UWorld this placed actor (not dynamic spawned actor) belong to, use GetTypedOuter<UWorld>()
|
| |
|
class FTimerManager & | GetWorldTimerManager () const |
| | Get the timer instance from the actors world
|
| |
|
virtual bool | HasActiveCameraComponent () const |
| | Returns true if the actor contains an active camera component
|
| |
|
virtual bool | HasActivePawnControlCameraComponent () const |
| | Returns true if the actor contains an active locked to HMD camera component
|
| |
|
bool | HasActorBegunPlay () const |
| | Returns whether an actor has had BeginPlay called on it (and not subsequently had EndPlay called)
|
| |
|
bool | HasAuthority () const |
| | Returns whether this actor has network authority
|
| |
| FORCEINLINE bool | HasDeferredComponentRegistration () const |
| | Returns true if Actor has deferred the RegisterAllComponents() call at spawn time (e.g. 更多...
|
| |
| virtual bool | HasLocalNetOwner () const |
| | Does this actor have a locally controlled owner responsible for replication? (APlayerController typically) 更多...
|
| |
| virtual bool | HasNetOwner () const |
| | Does this actor have an owner responsible for replication? (APlayerController typically) 更多...
|
| |
|
bool | HasValidRootComponent () |
| | Returns true if Actor has a registered root component
|
| |
| bool | IncrementalRegisterComponents (int32 NumComponentsToRegister, FRegisterComponentContext *Context=nullptr) |
| | Incrementally registers components associated with this actor, used during level streaming 更多...
|
| |
|
void | InitializeComponents () |
| | Iterate over components array and call InitializeComponent, which happens once per actor
|
| |
|
void | InvalidateLightingCache () |
| | Invalidate lighting cache with default options.
|
| |
|
virtual void | InvalidateLightingCacheDetailed (bool bTranslationOnly) |
| | Invalidates anything produced by the last lighting build.
|
| |
|
bool | IsActorBeginningPlay () const |
| | Returns whether an actor is in the process of beginning play
|
| |
|
bool | IsActorBeginningPlayFromLevelStreaming () const |
| | Returns whether an actor is beginning play in DispatchBeginPlay() during level streaming (which includes initial level load).
|
| |
|
bool | IsActorBeingDestroyed () const |
| | Returns true if this actor is currently being destroyed, some gameplay events may be unsafe
|
| |
|
bool | IsActorInitialized () const |
| | Returns whether an actor has been initialized for gameplay
|
| |
|
bool | IsActorTickEnabled () const |
| | Returns whether this actor has tick enabled or not
|
| |
|
virtual bool | IsAsset () const override |
| | Returns true if this object is considered an asset.
|
| |
| virtual bool | IsAttachedTo (const AActor *Other) const |
| | Iterates up the attachment chain to see whether or not this Actor is attached to the given Actor 更多...
|
| |
| virtual bool | IsBasedOnActor (const AActor *Other) const |
| | Iterates up the movement base chain to see whether or not this Actor is based on the given Actor, defaults to checking attachment 更多...
|
| |
|
bool | IsChildActor () const |
| | Returns whether this Actor was spawned by a child actor component
|
| |
| virtual bool | IsComponentRelevantForNavigation (UActorComponent *Component) const |
| | Check if owned component should be relevant for navigation Allows implementing master switch to disable e.g. 更多...
|
| |
| virtual bool | IsEditorOnly () const override |
| | Called during saving to determine if the object is forced to be editor only or not 更多...
|
| |
| bool | IsHidden () const |
| | Gets the literal value of bHidden. 更多...
|
| |
|
bool | IsInLevel (const class ULevel *TestLevel) const |
| | Returns true if this actor is contained by TestLevel.
|
| |
| bool | IsInPersistentLevel (bool bIncludeLevelStreamingPersistent=false) const |
| | Returns whether this Actor is in the persistent level, i.e. 更多...
|
| |
|
virtual bool | IsLevelBoundsRelevant () const |
| | Indicates whether this actor should participate in level bounds calculations
|
| |
|
bool | IsMatineeControlled () const |
| | Returns whether a MatineeActor is currently controlling this Actor
|
| |
|
virtual bool | IsNameStableForNetworking () const override |
| | IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
|
| |
| bool | IsNetMode (ENetMode Mode) const |
| | Test whether net mode is the given mode. 更多...
|
| |
| virtual bool | IsNetRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation) const |
| | Checks to see if this actor is relevant for a specific network connection 更多...
|
| |
|
bool | IsNetStartupActor () const |
| | Returns true if this is a replicated actor that was placed in the map
|
| |
| bool | IsOverlappingActor (const AActor *Other) const |
| | Check whether any component of this Actor is overlapping any component of another Actor. 更多...
|
| |
|
bool | IsOwnedBy (const AActor *TestOwner) const |
| | See if this actor is owned by TestOwner.
|
| |
| bool | IsPackageExternal () const |
| | Get the actor packaging mode. 更多...
|
| |
| bool | IsPendingKillPending () const |
| | Returns true if this actor has begun the destruction process. 更多...
|
| |
| virtual bool | IsReadyForFinishDestroy () override |
| | Called to check if the object is ready for FinishDestroy. 更多...
|
| |
| virtual bool | IsRelevancyOwnerFor (const AActor *ReplicatedActor, const AActor *ActorOwner, const AActor *ConnectionActor) const |
| | Check if this actor is the owner when doing relevancy checks for actors marked bOnlyRelevantToOwner 更多...
|
| |
| virtual bool | IsReplayRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation, const float CullDistanceSquared) const |
| | Checks to see if this actor is relevant for a recorded replay 更多...
|
| |
| bool | IsReplicatingMovement () const |
| | Gets the literal value of bReplicateMovement. 更多...
|
| |
|
virtual bool | IsReplicationPausedForConnection (const FNetViewer &ConnectionOwnerNetViewer) |
| | Gives the actor a chance to pause replication to a player represented by the passed in actor - only called on server
|
| |
| virtual bool | IsRootComponentCollisionRegistered () const |
| | Returns true if the root component is registered and has collision enabled. 更多...
|
| |
|
bool | IsRootComponentMovable () const |
| | See if the root component has Mobility of EComponentMobility::Movable
|
| |
|
bool | IsRootComponentStatic () const |
| | See if the root component has ModifyFrequency of MF_Static
|
| |
|
bool | IsRootComponentStationary () const |
| | See if the root component has Mobility of EComponentMobility::Stationary
|
| |
|
FORCEINLINE bool | IsRunningUserConstructionScript () const |
| | Returns if this actor is currently running the User Construction Script
|
| |
|
virtual bool | IsSupportedForNetworking () const override |
| | IsSupportedForNetworking means an object can be referenced over the network
|
| |
| void | K2_AddActorLocalOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the location of this component in its local reference frame. 更多...
|
| |
| void | K2_AddActorLocalRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the rotation of this component in its local reference frame 更多...
|
| |
| void | K2_AddActorLocalTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the transform of this component in its local reference frame 更多...
|
| |
| void | K2_AddActorWorldOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the location of this actor in world space. 更多...
|
| |
| void | K2_AddActorWorldRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the rotation of this actor in world space. 更多...
|
| |
| void | K2_AddActorWorldTransform (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the transform of this actor in world space. 更多...
|
| |
| void | K2_AddActorWorldTransformKeepScale (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Adds a delta to the transform of this actor in world space. 更多...
|
| |
|
void | K2_AttachRootComponentTo (USceneComponent *InParent, FName InSocketName=NAME_None, EAttachLocation::Type AttachLocationType=EAttachLocation::KeepRelativeOffset, bool bWeldSimulatedBodies=true) |
| | DEPRECATED - Use AttachToComponent() instead
|
| |
|
void | K2_AttachRootComponentToActor (AActor *InParentActor, FName InSocketName=NAME_None, EAttachLocation::Type AttachLocationType=EAttachLocation::KeepRelativeOffset, bool bWeldSimulatedBodies=true) |
| | DEPRECATED - Use AttachToActor() instead
|
| |
| void | K2_AttachToActor (AActor *ParentActor, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies) |
| | Attaches the RootComponent of this Actor to the supplied actor, optionally at a named socket. 更多...
|
| |
| void | K2_AttachToComponent (USceneComponent *Parent, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies) |
| | Attaches the RootComponent of this Actor to the supplied component, optionally at a named socket. 更多...
|
| |
|
virtual void | K2_DestroyActor () |
| | Destroy the actor
|
| |
| void | K2_DetachFromActor (EDetachmentRule LocationRule=EDetachmentRule::KeepRelative, EDetachmentRule RotationRule=EDetachmentRule::KeepRelative, EDetachmentRule ScaleRule=EDetachmentRule::KeepRelative) |
| | Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to. 更多...
|
| |
|
FVector | K2_GetActorLocation () const |
| | Returns the location of the RootComponent of this Actor
|
| |
|
FRotator | K2_GetActorRotation () const |
| | Returns rotation of the RootComponent of this Actor.
|
| |
| TArray< UActorComponent * > | K2_GetComponentsByClass (TSubclassOf< UActorComponent > ComponentClass) const |
| | Gets all the components that inherit from the given class. 更多...
|
| |
|
USceneComponent * | K2_GetRootComponent () const |
| | Returns the RootComponent of this Actor
|
| |
|
void | K2_OnBecomeViewTarget (class APlayerController *PC) |
| | Event called when this Actor becomes the view target for the given PlayerController.
|
| |
|
void | K2_OnEndViewTarget (class APlayerController *PC) |
| | Event called when this Actor is no longer the view target for the given PlayerController.
|
| |
|
void | K2_OnReset () |
| | Event called when this Actor is reset to its initial state - used when restarting level without reloading.
|
| |
| bool | K2_SetActorLocation (FVector NewLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Move the Actor to the specified location. 更多...
|
| |
| bool | K2_SetActorLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Move the actor instantly to the specified location and rotation. 更多...
|
| |
| void | K2_SetActorRelativeLocation (FVector NewRelativeLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Set the actor's RootComponent to the specified relative location. 更多...
|
| |
| void | K2_SetActorRelativeRotation (FRotator NewRelativeRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Set the actor's RootComponent to the specified relative rotation 更多...
|
| |
| void | K2_SetActorRelativeTransform (const FTransform &NewRelativeTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Set the actor's RootComponent to the specified relative transform 更多...
|
| |
| bool | K2_SetActorRotation (FRotator NewRotation, bool bTeleportPhysics) |
| | Set the Actor's rotation instantly to the specified rotation. 更多...
|
| |
| bool | K2_SetActorTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| | Set the Actors transform to the specified one. 更多...
|
| |
| bool | K2_TeleportTo (FVector DestLocation, FRotator DestRotation) |
| | Teleport this actor to a new location. 更多...
|
| |
|
virtual void | LifeSpanExpired () |
| | Called when the lifespan of an actor expires (if he has one).
|
| |
| void | MakeNoise (float Loudness=1.f, APawn *NoiseInstigator=nullptr, FVector NoiseLocation=FVector::ZeroVector, float MaxRange=0.f, FName Tag=NAME_None) |
| | Trigger a noise caused by a given Pawn, at a given location. 更多...
|
| |
|
virtual void | MarkComponentsAsPendingKill () |
| | Called to mark all components as pending kill when the actor is being destroyed
|
| |
|
void | MarkComponentsRenderStateDirty () |
| | Flags all component's render state as dirty
|
| |
|
virtual void | NotifyActorBeginCursorOver () |
| | Event when this actor has the mouse moved over it with the clickable interface.
|
| |
| virtual void | NotifyActorBeginOverlap (AActor *OtherActor) |
| | Event when this actor overlaps another actor, for example a player walking into a trigger. 更多...
|
| |
|
virtual void | NotifyActorEndCursorOver () |
| | Event when this actor has the mouse moved off of it with the clickable interface.
|
| |
| virtual void | NotifyActorEndOverlap (AActor *OtherActor) |
| | Event when an actor no longer overlaps another actor, and they have separated. 更多...
|
| |
|
virtual void | NotifyActorOnClicked (FKey ButtonPressed=EKeys::LeftMouseButton) |
| | Event when this actor is clicked by the mouse when using the clickable interface.
|
| |
|
virtual void | NotifyActorOnInputTouchBegin (const ETouchIndex::Type FingerIndex) |
| | Event when this actor is touched when click events are enabled.
|
| |
|
virtual void | NotifyActorOnInputTouchEnd (const ETouchIndex::Type FingerIndex) |
| | Event when this actor is under the finger when untouched when click events are enabled.
|
| |
|
virtual void | NotifyActorOnInputTouchEnter (const ETouchIndex::Type FingerIndex) |
| | Event when this actor has a finger moved over it with the clickable interface.
|
| |
|
virtual void | NotifyActorOnInputTouchLeave (const ETouchIndex::Type FingerIndex) |
| | Event when this actor has a finger moved off of it with the clickable interface.
|
| |
|
virtual void | NotifyActorOnReleased (FKey ButtonReleased=EKeys::LeftMouseButton) |
| | Event when this actor is under the mouse when left mouse button is released while using the clickable interface.
|
| |
| virtual void | NotifyHit (class UPrimitiveComponent *MyComp, AActor *Other, class UPrimitiveComponent *OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult &Hit) |
| | Event when this actor bumps into a blocking object, or blocks another actor that bumps into it. 更多...
|
| |
| virtual void | OnActorChannelOpen (class FInBunch &InBunch, class UNetConnection *Connection) |
| | Allows for a specific response from the actor when the actor channel is opened (client side) 更多...
|
| |
| virtual void | OnConstruction (const FTransform &Transform) |
| | Called when an instance of this class is placed (in editor) or spawned. 更多...
|
| |
| virtual void | OnNetCleanup (class UNetConnection *Connection) |
| | Handles cleaning up the associated Actor when killing the connection 更多...
|
| |
|
virtual void | OnRep_AttachmentReplication () |
| | Called on client when updated AttachmentReplication value is received for this actor.
|
| |
|
virtual void | OnRep_Instigator () |
| | Called on clients when Instigator is replicated.
|
| |
|
virtual void | OnRep_ReplicatedMovement () |
| | ReplicatedMovement struct replication event
|
| |
|
virtual void | OnRep_ReplicateMovement () |
| | Called on client when updated bReplicateMovement value is received for this actor.
|
| |
|
virtual void | OnReplicationPausedChanged (bool bIsReplicationPaused) |
| | Called on the client when the replication paused value is changed
|
| |
| virtual void | OnSerializeNewActor (class FOutBunch &OutBunch) |
| | SerializeNewActor has just been called on the actor before network replication (server side) 更多...
|
| |
|
virtual void | OnSubobjectCreatedFromReplication (UObject *NewSubobject) |
| | Called on the actor when a new subobject is dynamically created via replication
|
| |
|
virtual void | OnSubobjectDestroyFromReplication (UObject *Subobject) |
| | Called on the actor when a subobject is dynamically destroyed via replication
|
| |
|
virtual void | OutsideWorldBounds () |
| | Called when the Actor is outside the hard limit on world bounds
|
| |
| void | PostActorConstruction () |
| | Called after the actor has run its construction. 更多...
|
| |
| virtual void | PostActorCreated () |
| | Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. 更多...
|
| |
|
virtual void | PostInitializeComponents () |
| | Allow actors to initialize themselves on the C++ side after all of their components have been initialized, only called during gameplay
|
| |
| virtual void | PostInitProperties () override |
| | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
|
| |
| virtual void | PostLoad () override |
| | Do any object-specific cleanup required immediately after loading an object. 更多...
|
| |
| virtual void | PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph) override |
| | Instances components for objects being loaded from disk, if necessary. 更多...
|
| |
|
virtual void | PostNetInit () |
| | Always called immediately after spawning and reading in replicated properties
|
| |
|
virtual void | PostNetReceive () override |
| | Always called immediately after properties are received from the remote.
|
| |
| virtual void | PostNetReceiveLocationAndRotation () |
| | Update location and rotation from ReplicatedMovement. 更多...
|
| |
|
virtual void | PostNetReceivePhysicState () |
| | Update and smooth simulated physic state, replaces PostNetReceiveLocation() and PostNetReceiveVelocity()
|
| |
|
virtual void | PostNetReceiveRole () |
| | Always called immediately after a new Role is received from the remote.
|
| |
|
virtual void | PostNetReceiveVelocity (const FVector &NewVelocity) |
| | Update velocity - typically from ReplicatedMovement, not called for simulated physics!
|
| |
|
virtual void | PostRegisterAllComponents () |
| | Called after all the components in the Components array are registered, called both in editor and during gameplay
|
| |
|
virtual void | PostRename (UObject *OldOuter, const FName OldName) override |
| | Called at the end of Rename(), but only if the rename was actually carried out
|
| |
| virtual void | PostRenderFor (class APlayerController *PC, class UCanvas *Canvas, FVector CameraPosition, FVector CameraDir) |
| | Hook to allow actors to render HUD overlays for themselves. 更多...
|
| |
| virtual void | PostSaveRoot (bool bCleanupIsRequired) override |
| | Called from within SavePackage on the passed in base/root object. 更多...
|
| |
| void | PostSpawnInitialize (FTransform const &SpawnTransform, AActor *InOwner, APawn *InInstigator, bool bRemoteOwned, bool bNoFail, bool bDeferConstruction) |
| | Called after the actor is spawned in the world. 更多...
|
| |
|
virtual void | PostUnregisterAllComponents () |
| | Called after all currently registered components are cleared
|
| |
|
virtual void | PreInitializeComponents () |
| | Called right before components are initialized, only called during gameplay
|
| |
|
virtual void | PreNetReceive () override |
| | Always called immediately before properties are received from the remote.
|
| |
|
virtual void | PreRegisterAllComponents () |
| | Called before all the components in the Components array are registered, called both in editor and during gameplay
|
| |
| virtual void | PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker) |
| | Called on the actor right before replication occurs. 更多...
|
| |
| virtual void | PreReplicationForReplay (IRepChangedPropertyTracker &ChangedPropertyTracker) |
| | Called on the actor right before replication occurs. 更多...
|
| |
| virtual bool | PreSaveRoot (const TCHAR *InFilename) override |
| | Called from within SavePackage on the passed in base/root object. 更多...
|
| |
| virtual void | PrestreamTextures (float Seconds, bool bEnableStreaming, int32 CinematicTextureGroups=0) |
| | Calls PrestreamTextures() for all the actor's meshcomponents. 更多...
|
| |
|
virtual void | ProcessEvent (UFunction *Function, void *Parameters) override |
| | Called by VM to execute a UFunction with a filled in UStruct of parameters
|
| |
|
void | ReceiveActorBeginCursorOver () |
| | Event when this actor has the mouse moved over it with the clickable interface.
|
| |
| void | ReceiveActorBeginOverlap (AActor *OtherActor) |
| | Event when this actor overlaps another actor, for example a player walking into a trigger. 更多...
|
| |
|
void | ReceiveActorEndCursorOver () |
| | Event when this actor has the mouse moved off of it with the clickable interface.
|
| |
| void | ReceiveActorEndOverlap (AActor *OtherActor) |
| | Event when an actor no longer overlaps another actor, and they have separated. 更多...
|
| |
|
void | ReceiveActorOnClicked (FKey ButtonPressed=EKeys::LeftMouseButton) |
| | Event when this actor is clicked by the mouse when using the clickable interface.
|
| |
|
void | ReceiveActorOnInputTouchBegin (const ETouchIndex::Type FingerIndex) |
| | Event when this actor is touched when click events are enabled.
|
| |
|
void | ReceiveActorOnInputTouchEnd (const ETouchIndex::Type FingerIndex) |
| | Event when this actor is under the finger when untouched when click events are enabled.
|
| |
|
void | ReceiveActorOnInputTouchEnter (const ETouchIndex::Type FingerIndex) |
| | Event when this actor has a finger moved over it with the clickable interface.
|
| |
|
void | ReceiveActorOnInputTouchLeave (const ETouchIndex::Type FingerIndex) |
| | Event when this actor has a finger moved off of it with the clickable interface.
|
| |
|
void | ReceiveActorOnReleased (FKey ButtonReleased=EKeys::LeftMouseButton) |
| | Event when this actor is under the mouse when left mouse button is released while using the clickable interface.
|
| |
|
void | ReceiveAnyDamage (float Damage, const class UDamageType *DamageType, class AController *InstigatedBy, AActor *DamageCauser) |
| | Event when this actor takes ANY damage
|
| |
|
void | ReceiveDestroyed () |
| | Called when the actor has been explicitly destroyed.
|
| |
| void | ReceiveHit (class UPrimitiveComponent *MyComp, AActor *Other, class UPrimitiveComponent *OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult &Hit) |
| | Event when this actor bumps into a blocking object, or blocks another actor that bumps into it. 更多...
|
| |
|
void | ReceivePointDamage (float Damage, const class UDamageType *DamageType, FVector HitLocation, FVector HitNormal, class UPrimitiveComponent *HitComponent, FName BoneName, FVector ShotFromDirection, class AController *InstigatedBy, AActor *DamageCauser, const FHitResult &HitInfo) |
| | Event when this actor takes POINT damage
|
| |
|
void | ReceiveRadialDamage (float DamageReceived, const class UDamageType *DamageType, FVector Origin, const struct FHitResult &HitInfo, class AController *InstigatedBy, AActor *DamageCauser) |
| | Event when this actor takes RADIAL damage
|
| |
|
void | ReceiveTick (float DeltaSeconds) |
| | Event called every frame, if ticking is enabled
|
| |
| void | RegisterAllActorTickFunctions (bool bRegister, bool bDoComponents) |
| | When called, will call the virtual call chain to register all of the tick functions for both the actor and optionally all components Do not override this function or make it virtual 更多...
|
| |
|
virtual void | RegisterAllComponents () |
| | Ensure that all the components in the Components array are registered
|
| |
| void | RemoveControllingMatineeActor (AMatineeActor &InMatineeActor) |
| | Removes a controlling matinee actor 更多...
|
| |
|
void | RemoveInstanceComponent (UActorComponent *Component) |
| | Removes a component from the instance components array
|
| |
| void | RemoveOwnedComponent (UActorComponent *Component) |
| | Removes a component from the OwnedComponents array of the Actor. 更多...
|
| |
|
virtual void | RemoveTickPrerequisiteActor (AActor *PrerequisiteActor) |
| | Remove tick dependency on PrerequisiteActor.
|
| |
|
virtual void | RemoveTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent) |
| | Remove tick dependency on PrerequisiteComponent.
|
| |
| virtual bool | Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None) override |
| | Rename this object to a unique name, or change its outer. 更多...
|
| |
|
virtual bool | ReplicateSubobjects (class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags) |
| | Method that allows an actor to replicate subobjects on its actor channel
|
| |
| virtual void | ReregisterAllComponents () |
| | Will reregister all components on this actor. 更多...
|
| |
|
virtual void | RerunConstructionScripts () |
| | Rerun construction scripts, destroying all autogenerated components; will attempt to preserve the root component location.
|
| |
|
virtual void | Reset () |
| | Reset actor to initial state - used when restarting level without reloading.
|
| |
|
void | ResetOwnedComponents () |
| | Force the Actor to clear and rebuild its OwnedComponents array by evaluating all children (recursively) and locating components In general this should not need to be called directly, but can sometimes be necessary as part of undo/redo code paths.
|
| |
|
void | ResetPropertiesForConstruction () |
| | Reset private properties to defaults, and all FRandomStream structs in this Actor, so they will start their sequence of random numbers again.
|
| |
| virtual void | RewindForReplay () |
| | Called on the actor before checkpoint data is applied during a replay. 更多...
|
| |
|
void | RouteEndPlay (const EEndPlayReason::Type EndPlayReason) |
| | Non-virtual function to evaluate which portions of the EndPlay process should be dispatched for each actor
|
| |
| virtual void | Serialize (FArchive &Ar) override |
| | Handles reading, writing, and reference collecting using FArchive. 更多...
|
| |
|
void | SetActorEnableCollision (bool bNewActorEnableCollision) |
| | Allows enabling/disabling collision for the whole actor
|
| |
| virtual void | SetActorHiddenInGame (bool bNewHidden) |
| | Sets the actor to be hidden in the game 更多...
|
| |
| bool | SetActorLocation (const FVector &NewLocation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None) |
| | Move the actor instantly to the specified location. 更多...
|
| |
| bool | SetActorLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None) |
| | Move the actor instantly to the specified location and rotation. 更多...
|
| |
| void | SetActorRelativeScale3D (FVector NewRelativeScale) |
| | Set the actor's RootComponent to the specified relative scale 3d 更多...
|
| |
| bool | SetActorRotation (FRotator NewRotation, ETeleportType Teleport=ETeleportType::None) |
| | Set the Actor's rotation instantly to the specified rotation. 更多...
|
| |
|
void | SetActorScale3D (FVector NewScale3D) |
| | Set the Actor's world-space scale.
|
| |
| void | SetActorTickEnabled (bool bEnabled) |
| | Set this actor's tick functions to be enabled or disabled. 更多...
|
| |
| void | SetActorTickInterval (float TickInterval) |
| | Sets the tick interval of this actor's primary tick function. 更多...
|
| |
|
void | SetAutonomousProxy (const bool bInAutonomousProxy, const bool bAllowForcePropertyCompare=true) |
| | Sets whether or not this Actor is an autonomous proxy, which is an actor on a network client that is controlled by a user on that client.
|
| |
|
void | SetCanBeDamaged (bool bInCanBeDamaged) |
| | Sets the value of bCanBeDamaged without causing other side effects to this instance.
|
| |
| void | SetHidden (const bool bInHidden) |
| | Sets the value of bHidden without causing other side effects to this instance. 更多...
|
| |
|
void | SetInstigator (APawn *InInstigator) |
| | Sets the value of Instigator without causing other side effects to this instance.
|
| |
| virtual void | SetLifeSpan (float InLifespan) |
| | Set the lifespan of this actor. 更多...
|
| |
| void | SetLODParent (class UPrimitiveComponent *InLODParent, float InParentDrawDistance) |
| | Set LOD Parent component for all of our components, normally associated with an ALODActor. 更多...
|
| |
|
void | SetNetDormancy (ENetDormancy NewDormancy) |
| | Puts actor in dormant networking state
|
| |
| void | SetNetDriverName (FName NewNetDriverName) |
| | Set the name of the net driver associated with this actor. 更多...
|
| |
|
void | SetNetUpdateTime (float NewUpdateTime) |
| | Updates NetUpdateTime to the new value for future net relevancy checks
|
| |
| virtual void | SetOwner (AActor *NewOwner) |
| | Set the owner of this Actor, used primarily for network replication. 更多...
|
| |
|
void | SetReplicatedMovement (const FRepMovement &InReplicatedMovement) |
| | Sets the value of ReplicatedMovement without causing other side effects to this instance.
|
| |
| virtual void | SetReplicateMovement (bool bInReplicateMovement) |
| | Set whether this actor's movement replicates to network clients. 更多...
|
| |
| void | SetReplicates (bool bInReplicates) |
| | Set whether this actor replicates to network clients. 更多...
|
| |
|
void | SetReplicatingMovement (bool bInReplicateMovement) |
| | Sets the value of bReplicateMovement without causing other side effects to this instance.
|
| |
|
void | SetRole (ENetRole InRole) |
| | Sets the value of Role without causing other side effects to this instance.
|
| |
| bool | SetRootComponent (USceneComponent *NewRootComponent) |
| | Sets root component to be the specified component. 更多...
|
| |
|
void | SetTickableWhenPaused (bool bTickableWhenPaused) |
| | Sets whether this actor can tick when paused.
|
| |
| void | SetTickGroup (ETickingGroup NewTickGroup) |
| | Sets the ticking group for this actor. 更多...
|
| |
|
virtual bool | ShouldTickIfViewportsOnly () const |
| | If true, actor is ticked even if TickType==LEVELTICK_ViewportsOnly
|
| |
| void | SwapRoles () |
| | Calls this to swap the Role and RemoteRole. 更多...
|
| |
| virtual float | TakeDamage (float DamageAmount, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, AActor *DamageCauser) |
| | Apply damage to this actor. 更多...
|
| |
| virtual void | TearOff () |
| | Networking - Server - TearOff this actor to stop replication to clients. 更多...
|
| |
|
virtual void | TeleportSucceeded (bool bIsATest) |
| | Called from TeleportTo() when teleport succeeds
|
| |
| virtual bool | TeleportTo (const FVector &DestLocation, const FRotator &DestRotation, bool bIsATest=false, bool bNoCheck=false) |
| | Used for adding actors to levels or teleporting them to a new location. 更多...
|
| |
| virtual void | Tick (float DeltaSeconds) |
| | Function called every frame on this Actor. 更多...
|
| |
| virtual void | TickActor (float DeltaTime, enum ELevelTick TickType, FActorTickFunction &ThisTickFunction) |
| | Dispatches the once-per frame Tick() function for this actor 更多...
|
| |
| virtual void | TornOff () |
| | Networking - called on client when actor is torn off (bTearOff==true), meaning it's no longer replicated to clients. 更多...
|
| |
|
void | UninitializeComponents () |
| | Iterate over components array and call UninitializeComponent, called when the actor is ending play
|
| |
| virtual void | UnregisterAllComponents (bool bForReregister=false) |
| | Unregister all currently registered components 更多...
|
| |
|
void | UpdateAllReplicatedComponents () |
| | Completely synchronizes the replicated components array so that it contains exactly the number of replicated components currently owned
|
| |
|
void | UpdateComponentTransforms () |
| | Update all components transforms
|
| |
| void | UpdateOverlaps (bool bDoNotifies=true) |
| | Queries world and updates overlap detection state for this actor. 更多...
|
| |
|
void | UpdateReplicatedComponent (UActorComponent *Component) |
| | Called when the replicated state of a component changes to update the Actor's cached ReplicatedComponents array
|
| |
| void | UserConstructionScript () |
| | Construction script, the place to spawn components and do other setup. 更多...
|
| |
| virtual bool | UseShortConnectTimeout () const |
| | Used by the net connection to determine if a net owning actor should switch to using the shortened timeout value 更多...
|
| |
| bool | WasRecentlyRendered (float Tolerance=0.2) const |
| | Returns true if this actor has been rendered "recently", with a tolerance in seconds to define what "recent" means. 更多...
|
| |
|
void | AbortInsideMemberFunction () const |
| | Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump.
|
| |
| virtual bool | AreNativePropertiesIdenticalTo (UObject *Other) const |
| | Returns whether native properties are identical to the one of the passed in component. 更多...
|
| |
| virtual void | BeginDestroy () |
| | Called before destroying the object. 更多...
|
| |
| virtual void | BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const |
| | Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. 更多...
|
| |
| void | CallAddReferencedObjects (FReferenceCollector &Collector) |
| | Helper function to call AddReferencedObjects for this object's class. 更多...
|
| |
|
void | CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function) |
| | Internal VM method for executing a function
|
| |
|
bool | CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false) |
| | Handle calling a function by name when executed from the console or a command line
|
| |
| virtual bool | CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack) |
| | Call the actor's function remotely 更多...
|
| |
| bool | CheckDefaultSubobjects (bool bForceCheck=false) const |
| | Checks default sub-object assumptions. 更多...
|
| |
| void | CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const |
| | Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多...
|
| |
| bool | ConditionalBeginDestroy () |
| | Called before destroying the object. 更多...
|
| |
|
bool | ConditionalFinishDestroy () |
| | Called when an object is actually destroyed, memory should never be accessed again
|
| |
|
void | ConditionalPostLoad () |
| | PostLoad if needed.
|
| |
| void | ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL) |
| | Instances subobjects and components for objects being loaded from disk, if necessary. 更多...
|
| |
|
| DECLARE_FUNCTION (execBreakpoint) |
| | Breakpoint; only observed in the editor; executing it at any other time is a NOP
|
| |
|
| DECLARE_FUNCTION (execInstrumentation) |
| | Instrumentation event for profiling; only observed in the builds with blueprint instrumentation
|
| |
| | DECLARE_FUNCTION (execPopExecutionFlow) |
| | Pops a code offset from the execution flow stack and starts execution there. 更多...
|
| |
| | DECLARE_FUNCTION (execPopExecutionFlowIfNot) |
| | Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多...
|
| |
| | DECLARE_FUNCTION (execPushExecutionFlow) |
| | Push a code offset onto the execution flow stack for future execution. 更多...
|
| |
|
| DECLARE_FUNCTION (execReturnNothing) |
| | failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function
|
| |
|
| DECLARE_FUNCTION (execTracepoint) |
| | Tracepoint; only observed in the editor; executing it at any other time is a NOP
|
| |
| | DECLARE_FUNCTION (ProcessInternal) |
| | Internal function call processing. 更多...
|
| |
|
void | DestroyNonNativeProperties () |
| | Destroy properties that won't be destroyed by the native destructor
|
| |
|
void | ExecuteUbergraph (int32 EntryPoint) |
| | Execute the ubergraph from a specific entry point
|
| |
| virtual void | ExportCustomProperties (FOutputDevice &Out, uint32 Indent) |
| | Exports the property values for the specified object as text to the output device. 更多...
|
| |
|
UFunction * | FindFunction (FName InName) const |
| | Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName()
|
| |
|
UFunction * | FindFunctionChecked (FName InName) const |
| | Version of FindFunction() that will assert if the function was not found
|
| |
| virtual void | FinishDestroy () |
| | Called to finish destroying the object. 更多...
|
| |
| UObject * | GetArchetype () const |
| | Return the template this object is based on. 更多...
|
| |
| void | GetArchetypeInstances (TArray< UObject * > &Instances) |
| | Builds a list of objects which have this object in their archetype chain. 更多...
|
| |
| virtual void | GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const |
| | Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多...
|
| |
|
virtual const TCHAR * | GetConfigOverridePlatform () const |
| | Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them)
|
| |
|
FString | GetDefaultConfigFilename () const |
| | Get the default config filename for the specified UObject
|
| |
|
virtual FString | GetDesc () |
| | Return a one line description of an object for viewing in the thumbnail view of the generic browser
|
| |
| FString | GetDetailedInfo () const |
| | This will return detail info about this specific object. 更多...
|
| |
|
virtual FName | GetExporterName (void) |
| | Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension
|
| |
| virtual int32 | GetFunctionCallspace (UFunction *Function, FFrame *Stack) |
| | Return the space this function should be called. 更多...
|
| |
|
FString | GetGlobalUserConfigFilename () const |
| | Get the global user override config filename for the specified UObject
|
| |
|
virtual void | GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const |
| | Returns properties that are replicated for the lifetime of the actor channel
|
| |
| virtual bool | GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const |
| | Callback for retrieving a textual representation of natively serialized properties. 更多...
|
| |
|
virtual int32 | GetNetPushIdDynamic () const |
| | Should only ever be used by internal systems.
|
| |
| virtual void | GetPreloadDependencies (TArray< UObject * > &OutDeps) |
| | Called during cooking. 更多...
|
| |
| virtual void | GetPrestreamPackages (TArray< UObject * > &OutPrestream) |
| | Called during cooking. 更多...
|
| |
| virtual FPrimaryAssetId | GetPrimaryAssetId () const |
| | Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多...
|
| |
|
FString | GetProjectUserConfigFilename () const |
| | Get the project user override config filename for the specified UObject
|
| |
| SIZE_T | GetResourceSizeBytes (EResourceSizeMode::Type Mode) |
| | Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. 更多...
|
| |
| virtual void | GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) |
| | Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
|
| |
| virtual FRestoreForUObjectOverwrite * | GetRestoreForUObjectOverwrite () |
| | Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
|
| |
|
virtual UScriptStruct * | GetSparseClassDataStruct () const |
| | Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class.
|
| |
|
virtual void | GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList) |
| | Returns a list of sub-objects that have stable names for networking
|
| |
|
template<class T > |
| FORCEINLINE bool | Implements () const |
| | Returns true if this object implements the interface T, false otherwise.
|
| |
|
template<class T > |
| bool | Implements () const |
| | Returns true if this object implements the interface T, false otherwise.
|
| |
| virtual void | ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn) |
| | Exports the property values for the specified object as text to the output device. 更多...
|
| |
|
void | InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL) |
| | Wrapper for calling UClass::InstanceSubobjectTemplates() for this object.
|
| |
|
virtual bool | IsAsset () const |
| | Returns true if this object is considered an asset.
|
| |
|
bool | IsBasedOnArchetype (const UObject *const SomeObject) const |
| | Determine if this object has SomeObject in its archetype chain.
|
| |
| virtual bool | IsDestructionThreadSafe () const |
| | Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多...
|
| |
| virtual bool | IsEditorOnly () const |
| | Called during saving to determine if the object is forced to be editor only or not 更多...
|
| |
|
virtual bool | IsFullNameStableForNetworking () const |
| | IsFullNameStableForNetworking means an object can be referred to its full path name over the network
|
| |
|
bool | IsInBlueprint () const |
| | Returns whether this object is contained in or part of a blueprint object
|
| |
|
virtual bool | IsLocalizedResource () const |
| | Returns true if this object is considered a localized resource.
|
| |
|
virtual bool | IsNameStableForNetworking () const |
| | IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
|
| |
| virtual bool | IsPostLoadThreadSafe () const |
| | Called during async load to determine if PostLoad can be called on the loading thread. 更多...
|
| |
| virtual bool | IsReadyForAsyncPostLoad () const |
| | Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多...
|
| |
| virtual bool | IsReadyForFinishDestroy () |
| | Called to check if the object is ready for FinishDestroy. 更多...
|
| |
|
virtual bool | IsSafeForRootSet () const |
| | Returns true if this object is safe to add to the root set.
|
| |
| bool | IsSelected () const |
| | Test the selection state of a UObject 更多...
|
| |
|
virtual bool | IsSupportedForNetworking () const |
| | IsSupportedForNetworking means an object can be referenced over the network
|
| |
| void | LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL) |
| | Imports property values from an .ini file. 更多...
|
| |
|
virtual void | MarkAsEditorOnlySubobject () |
| | Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
|
| |
| FORCEINLINE bool | Modify (bool bAlwaysMarkDirty=true) |
| | Note that the object will be modified. 更多...
|
| |
| virtual bool | NeedsLoadForClient () const |
| | Called during saving to determine the load flags to save with the object. 更多...
|
| |
| virtual bool | NeedsLoadForEditorGame () const |
| | Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
|
| |
| virtual bool | NeedsLoadForServer () const |
| | Called during saving to determine the load flags to save with the object. 更多...
|
| |
| virtual bool | NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const |
| | Called during saving to determine the load flags to save with the object. 更多...
|
| |
| void | OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL) |
| | Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多...
|
| |
| virtual void | OverridePerObjectConfigSection (FString &SectionName) |
| | Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多...
|
| |
|
void | ParseParms (const TCHAR *Parms) |
| | Import an object from a file.
|
| |
| virtual void | PostCDOContruct () |
| | Called after the C++ constructor has run on the CDO for a class. 更多...
|
| |
| virtual void | PostDuplicate (bool bDuplicateForPIE) |
| | Called after duplication & serialization and before PostLoad. 更多...
|
| |
|
virtual void | PostEditImport () |
| | Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization
|
| |
| virtual void | PostInitProperties () |
| | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
|
| |
| virtual void | PostInterpChange (FProperty *PropertyThatChanged) |
| | This is called when property is modified by InterpPropertyTracks 更多...
|
| |
| virtual void | PostLoad () |
| | Do any object-specific cleanup required immediately after loading an object. 更多...
|
| |
| virtual void | PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph) |
| | Instances components for objects being loaded from disk, if necessary. 更多...
|
| |
|
virtual void | PostNetReceive () |
| | Called right after receiving a bunch
|
| |
|
virtual void | PostReloadConfig (class FProperty *PropertyThatWasLoaded) |
| | Called from ReloadConfig after the object has reloaded its configuration data.
|
| |
|
virtual void | PostRename (UObject *OldOuter, const FName OldName) |
| | Called at the end of Rename(), but only if the rename was actually carried out
|
| |
|
virtual void | PostRepNotifies () |
| | Called right after calling all OnRep notifies (called even when there are no notifies)
|
| |
| virtual void | PostSaveRoot (bool bCleanupIsRequired) |
| | Called from within SavePackage on the passed in base/root object. 更多...
|
| |
|
virtual void | PreDestroyFromReplication () |
| | Called right before being marked for destruction due to network replication
|
| |
| virtual void | PreDuplicate (FObjectDuplicationParameters &DupParams) |
| | Called before duplication. 更多...
|
| |
|
virtual void | PreNetReceive () |
| | Called right before receiving a bunch
|
| |
| virtual void | PreSave (const class ITargetPlatform *TargetPlatform) |
| | Presave function. 更多...
|
| |
| virtual bool | PreSaveRoot (const TCHAR *Filename) |
| | Called from within SavePackage on the passed in base/root object. 更多...
|
| |
|
virtual bool | ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor) |
| | This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects.
|
| |
|
virtual void | ProcessEvent (UFunction *Function, void *Parms) |
| | Called by VM to execute a UFunction with a filled in UStruct of parameters
|
| |
| virtual UClass * | RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO) |
| | Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多...
|
| |
| void | ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL) |
| | Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多...
|
| |
| void | ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL) |
| | Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. 更多...
|
| |
| virtual bool | Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None) |
| | Rename this object to a unique name, or change its outer. 更多...
|
| |
|
void | RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers) |
| | Called by OutputReferencers() to get the internal list of referencers to write
|
| |
| void | SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true) |
| | Save configuration out to ini files 更多...
|
| |
| virtual void | Serialize (FArchive &Ar) |
| | Handles reading, writing, and reference collecting using FArchive. 更多...
|
| |
| void | SerializeScriptProperties (FArchive &Ar) const |
| | Serializes the script property data located at Data. 更多...
|
| |
| void | SerializeScriptProperties (FStructuredArchive::FSlot Slot) const |
| | Serializes the script property data located at Data. 更多...
|
| |
| void | SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true) |
| | Changes the linker and linker index to the passed in one. 更多...
|
| |
|
virtual void | ShutdownAfterError () |
| | After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
|
| |
| void | SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function) |
| | advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value 更多...
|
| |
| virtual void | TagSubobjects (EObjectFlags NewFlags) |
| | Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
|
| |
|
void | UpdateDefaultConfigFile (const FString &SpecificFileLocation="") |
| | Saves just the section(s) for this class into the default ini file for the class (with just the changes from base)
|
| |
|
void | UpdateGlobalUserConfigFile () |
| | Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base)
|
| |
|
void | UpdateProjectUserConfigFile () |
| | Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base)
|
| |
|
void | UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName) |
| | Saves just the property into the global user ini file for the class (with just the changes from base)
|
| |
| void | AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false) |
| | Adds this objects to a GC cluster that already exists 更多...
|
| |
| FORCEINLINE void | AddToRoot () |
| | Add an object to the root set. 更多...
|
| |
|
FORCEINLINE void | AppendName (FString &ResultString) const |
| | Optimized version of GetName that appends to an existing string
|
| |
| FORCEINLINE bool | AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const |
| | Atomically clears passed in internal flags. 更多...
|
| |
| virtual bool | CanBeClusterRoot () const |
| | Called after load to determine if the object can be a cluster root 更多...
|
| |
| virtual bool | CanBeInCluster () const |
| | Called during cluster construction if the object can be added to a cluster 更多...
|
| |
|
FORCEINLINE void | ClearFlags (EObjectFlags NewFlags) |
| | Clears subset of flags for a specific object
|
| |
| FORCEINLINE void | ClearInternalFlags (EInternalObjectFlags FlagsToClear) const |
| | Clears passed in internal flags. 更多...
|
| |
|
FORCEINLINE void | ClearPendingKill () |
| | Unmarks this object as PendingKill.
|
| |
|
virtual void | CreateCluster () |
| | Called after PostLoad to create UObject cluster
|
| |
|
void | DetachExternalPackage () |
| | Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached
|
| |
| const UClass * | FindNearestCommonBaseClass (const UClass *TestClass) const |
| | Finds the most-derived class which is a parent of both TestClass and this object's class. 更多...
|
| |
| FORCEINLINE EObjectMark | GetAllMarks () const |
| | Returns all of the object marks on a specific object 更多...
|
| |
| FString | GetFullGroupName (bool bStartWithOuter) const |
| | Walks up the chain of packages until it reaches the top level, which it ignores. 更多...
|
| |
|
void | GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const |
| | Version of GetFullName() that eliminates unnecessary copies.
|
| |
| FString | GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const |
| | Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多...
|
| |
| void * | GetInterfaceAddress (UClass *InterfaceClass) |
| | Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多...
|
| |
| FORCEINLINE EInternalObjectFlags | GetInternalFlags () const |
| | Gets internal flags. 更多...
|
| |
| class FLinkerLoad * | GetLinker () const |
| | Returns the linker for this object. 更多...
|
| |
| int32 | GetLinkerCustomVersion (FGuid CustomVersionKey) const |
| | Returns the custom version of the linker for this object corresponding to the given custom version key. 更多...
|
| |
| int32 | GetLinkerIndex () const |
| | Returns this object's LinkerIndex. 更多...
|
| |
| int32 | GetLinkerLicenseeUE4Version () const |
| | Returns the licensee version of the linker for this object. 更多...
|
| |
| int32 | GetLinkerUE4Version () const |
| | Returns the UE4 version of the linker for this object. 更多...
|
| |
| FORCEINLINE EObjectFlags | GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const |
| | Returns object flags that are both in the mask and set on the object. 更多...
|
| |
| FORCEINLINE FString | GetName () const |
| | Returns the name of this object (with no path information) 更多...
|
| |
|
FORCEINLINE void | GetName (FString &ResultString) const |
| | Optimized version of GetName that overwrites an existing string
|
| |
| void * | GetNativeInterfaceAddress (UClass *InterfaceClass) |
| | Returns a pointer to the I* native interface object that this object implements. 更多...
|
| |
| const void * | GetNativeInterfaceAddress (UClass *InterfaceClass) const |
| | Returns a pointer to the const I* native interface object that this object implements. 更多...
|
| |
| UPackage * | GetOutermost () const |
| | Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多...
|
| |
| UObject * | GetOutermostObject () const |
| | Walks up the list of outers until it finds the top-level one that isn't a package. 更多...
|
| |
| UPackage * | GetPackage () const |
| | Walks up the list of outers until it finds a package directly associated with the object. 更多...
|
| |
|
void | GetPathName (const UObject *StopOuter, FString &ResultString) const |
| | Versions of GetPathName() that eliminates unnecessary copies and allocations.
|
| |
| FString | GetPathName (const UObject *StopOuter=NULL) const |
| | Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多...
|
| |
| FORCEINLINE TStatId | GetStatID (bool bForDeferredUse=false) const |
| | Returns the stat ID of the object, used for profiling. 更多...
|
| |
| template<typename T > |
| T * | GetTypedOuter () const |
| | Traverses the outer chain searching for the next object of a certain type. 更多...
|
| |
| UObject * | GetTypedOuter (UClass *Target) const |
| | Traverses the outer chain searching for the next object of a certain type. 更多...
|
| |
| FORCEINLINE bool | HasAllFlags (EObjectFlags FlagsToCheck) const |
| | Used to safely check whether all of the passed in flags are set. 更多...
|
| |
| FORCEINLINE bool | HasAllMarks (EObjectMark Marks) const |
| | Tests an object for having ALL of a set of marks 更多...
|
| |
| FORCEINLINE bool | HasAnyFlags (EObjectFlags FlagsToCheck) const |
| | Used to safely check whether any of the passed in flags are set. 更多...
|
| |
| FORCEINLINE bool | HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const |
| | Used to safely check whether any of the passed in internal flags are set. 更多...
|
| |
| FORCEINLINE bool | HasAnyMarks (EObjectMark Marks) const |
| | Tests an object for having ANY of a set of marks 更多...
|
| |
|
template<class T > |
| bool | IsA () const |
| | Returns true if this object is of the template type.
|
| |
|
template<typename OtherClassType > |
| FORCEINLINE bool | IsA (OtherClassType SomeBase) const |
| | Returns true if this object is of the specified type.
|
| |
| bool | IsDefaultSubobject () const |
| | Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多...
|
| |
| bool | IsIn (const UObject *SomeOuter) const |
| | Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多...
|
| |
| bool | IsIn (const UPackage *SomePackage) const |
| | Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多...
|
| |
| bool | IsInA (const UClass *SomeBaseClass) const |
| | Find out if this object is inside (has an outer) that is of the specified class 更多...
|
| |
|
bool | IsInOuter (const UObject *SomeOuter) const |
| | Returns true if the object is contained in the specified outer.
|
| |
|
bool | IsInPackage (const UPackage *SomePackage) const |
| | Returns true if the object is contained in the specified package.
|
| |
|
FORCEINLINE bool | IsNative () const |
| | Checks if the object is native.
|
| |
|
FORCEINLINE bool | IsPendingKill () const |
| | Checks the PendingKill flag to see if it is dead but memory still valid
|
| |
|
FORCEINLINE bool | IsPendingKillOrUnreachable () const |
| | Checks if the object is pending kill or unreachable.
|
| |
| FORCEINLINE bool | IsRooted () const |
| | Returns true if this object is explicitly rooted 更多...
|
| |
| bool | IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const |
| | Determines whether this object is a template object 更多...
|
| |
|
FORCEINLINE bool | IsUnreachable () const |
| | Checks if the object is unreachable.
|
| |
| FORCEINLINE void | Mark (EObjectMark Marks) const |
| | Adds marks to an object 更多...
|
| |
| bool | MarkPackageDirty () const |
| | Finds the outermost package and marks it dirty. 更多...
|
| |
|
FORCEINLINE void | MarkPendingKill () |
| | Marks this object as RF_PendingKill.
|
| |
|
virtual void | OnClusterMarkedAsPendingKill () |
| | Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it.
|
| |
| FORCEINLINE bool | operator< (const UObjectBaseUtility &Other) const |
| | Overloaded < operator. 更多...
|
| |
|
void | ReattachExternalPackage () |
| | Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
|
| |
|
FORCEINLINE void | RemoveFromRoot () |
| | Remove an object from the root set.
|
| |
| bool | RootPackageHasAnyFlags (uint32 CheckFlagMask) const |
| | Checks whether this object's top-most package has any of the specified flags 更多...
|
| |
|
FORCEINLINE void | SetFlags (EObjectFlags NewFlags) |
| | Modifies object flags for a specific object
|
| |
| FORCEINLINE void | SetInternalFlags (EInternalObjectFlags FlagsToSet) const |
| | Clears passed in internal flags. 更多...
|
| |
| FORCEINLINE bool | ThisThreadAtomicallyClearedRFUnreachable () |
| | Atomically clear the unreachable flag 更多...
|
| |
| FORCEINLINE void | UnMark (EObjectMark Marks) const |
| | Removes marks from and object 更多...
|
| |
| FORCENOINLINE void | AtomicallyClearFlags (EObjectFlags FlagsToClear) |
| | Atomically clears the specified flags. 更多...
|
| |
| FORCENOINLINE void | AtomicallySetFlags (EObjectFlags FlagsToAdd) |
| | Atomically adds the specified flags. 更多...
|
| |
|
FORCEINLINE UClass * | GetClass () const |
| | Returns the UClass that defines the fields of this object
|
| |
|
UPackage * | GetExternalPackage () const |
| | Returns the external UPackage associated with this object, if any
|
| |
|
UPackage * | GetExternalPackageInternal () const |
| | Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
|
| |
| FORCEINLINE EObjectFlags | GetFlags () const |
| | Retrieve the object flags directly 更多...
|
| |
|
FORCEINLINE FName | GetFName () const |
| | Returns the logical name of this object
|
| |
|
FORCEINLINE UObject * | GetOuter () const |
| | Returns the UObject this object resides in
|
| |
| FORCEINLINE uint32 | GetUniqueID () const |
| | Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
|
| |
| bool | IsValidLowLevel () const |
| | Checks to see if the object appears to be valid 更多...
|
| |
| bool | IsValidLowLevelFast (bool bRecursive=true) const |
| | Faster version of IsValidLowLevel. 更多...
|
| |
|
void | SetExternalPackage (UPackage *InPackage) |
| | Associate an external package directly to this object.
|
| |
| | UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName) |
| | Constructor used by StaticAllocateObject 更多...
|
| |
|
virtual | ~UObjectBase () |
| | Final destructor, removes the object from the object array, and indirectly, from any annotations
|
| |