PrimitiveComponent¶
Class in Engine · Engine.PrimitiveComponent · native, abstract
Object › Component › ActorComponent › PrimitiveComponent
Subclasses: ArrowComponent, BrushComponent, CameraConeComponent, CoverGroupRenderingComponent, CylinderComponent, DecalComponent, DrawBoxComponent, DrawCapsuleComponent, DrawConeComponent, DrawCylinderComponent, DrawFrustumComponent, DrawQuadComponent, DrawSphereComponent, FluidInfluenceComponent, FluidSurfaceComponent, GameDestinationConnRenderingComponent, H7DrawBoxComponent, H7EditorCameraHeightTool, H7EditorCellOverlayComponent, ImageReflectionShadowPlaneComponent, LandscapeComponent, LandscapeGizmoRenderComponent, LandscapeHeightfieldCollisionComponent, LensFlareComponent, LevelGridVolumeRenderingComponent, LineBatchComponent, MeshComponent, ModelComponent, NavMeshRenderingComponent, NxForceFieldComponent, ParticleSystemComponent, PathRenderingComponent, RB_ConstraintDrawComponent, RB_RadialImpulseComponent, RouteRenderingComponent, SpeedTreeComponent, SplineComponent, SpriteComponent, TerrainComponent
Using it from Lua
Enums¶
ERadialImpulseFalloff
RIF_Constant = 0, RIF_Linear = 1
ERBCollisionChannel
RBCC_Default = 0, RBCC_Nothing = 1, RBCC_Pawn = 2, RBCC_Vehicle = 3, RBCC_Water = 4, RBCC_GameplayPhysics = 5, RBCC_EffectPhysics = 6, RBCC_Untitled1 = 7, RBCC_Untitled2 = 8, RBCC_Untitled3 = 9, RBCC_Untitled4 = 10, RBCC_Cloth = 11, RBCC_FluidDrain = 12, RBCC_SoftBody = 13, RBCC_FracturedMeshPart = 14, RBCC_BlockingVolume = 15, RBCC_DeadPawn = 16, RBCC_Clothing = 17, RBCC_ClothingCollision = 18
GJKResult
GJK_Intersect = 0, GJK_NoIntersection = 1, GJK_Fail = 2
Structs¶
MaterialViewRelevance
| Field | Type |
|---|---|
bOpaque | bool |
bTranslucent | bool |
bDistortion | bool |
bOneLayerDistortionRelevance | bool |
bLit | bool |
bUsesSceneColor | bool |
RBCollisionChannelContainer
| Field | Type |
|---|---|
Default | bool |
Nothing | bool |
Pawn | bool |
Vehicle | bool |
Water | bool |
GameplayPhysics | bool |
EffectPhysics | bool |
Untitled1 | bool |
Untitled2 | bool |
Untitled3 | bool |
Untitled4 | bool |
Cloth | bool |
FluidDrain | bool |
SoftBody | bool |
FracturedMeshPart | bool |
BlockingVolume | bool |
DeadPawn | bool |
Clothing | bool |
ClothingCollision | bool |
Properties¶
| Name | Type | Notes |
|---|---|---|
AbsoluteRotation | bool | const |
AbsoluteScale | bool | const |
AbsoluteTranslation | bool | const |
AlwaysCheckCollision | bool | const |
AlwaysLoadOnClient | bool | const, private |
AlwaysLoadOnServer | bool | const, private |
bAcceptsDecals | bool | const |
bAcceptsDecalsDuringGameplay | bool | const |
bAcceptsDynamicDecals | bool | const |
bAcceptsDynamicDominantLightShadows | bool | |
bAcceptsDynamicLights | bool | const |
bAcceptsLights | bool | const |
bAcceptsStaticDecals | bool | const |
bAllowAmbientOcclusion | bool | |
bAllowApproximateOcclusion | bool | |
bAllowCullDistanceVolume | bool | const |
bAllowDecalAutomaticReAttach | bool | transient |
bAllowShadowFade | bool | |
bBlockFootPlacement | bool | const |
bCastDynamicShadow | bool | |
bCastHiddenShadow | bool | |
bCastShadowAsTwoSided | bool | |
bCastStaticShadow | bool | |
bDisableAllRigidBody | bool | const |
bFirstFrameOcclusion | bool | |
bFluidDrain | bool | const |
bFluidTwoWay | bool | const |
bForceDirectLightMap | bool | const |
bForceMipStreaming | bool | const |
bHasExplicitShadowParent | bool | const, transient, private |
bIgnoreForceField | bool | |
bIgnoreHiddenActorsMembership | bool | |
bIgnoreNearPlaneIntersection | bool | |
bIgnoreOwnerHidden | bool | const |
bIgnoreRadialForce | bool | |
bIgnoreRadialImpulse | bool | |
bIsRefreshingDecals | bool | const, transient, native |
BlockActors | bool | const |
BlockNonZeroExtent | bool | const |
BlockRigidBody | bool | const |
BlockZeroExtent | bool | const |
bNoModSelfShadow | bool | |
bNotifyRigidBodyCollision | bool | const |
BodyInstance | RB_BodyInstance | const, native |
bOnlyOwnerSee | bool | const |
Bounds | BoxSphereBounds | const, transient, native |
BoundsScale | float | const |
bOutlined | bool | no declaration: type is approximate |
bOwnerNoSee | bool | const |
bSelectable | bool | |
bSelfShadowOnly | bool | |
bSkipRBGeomCreation | bool | const |
bSupportedOnMobile | bool | |
bUseAsOccluder | bool | |
bUseCompartment | bool | const |
bUseOnePassLightingOnTranslucency | bool | const |
bUsePerInstanceHitProxies | bool | |
bUsePrecomputedShadows | bool | const |
bUseViewOwnerDepthPriorityGroup | bool | const |
bWasSNFiltered | bool | const, transient, native |
CachedCullDistance | float | editconst |
CachedMaxDrawDistance | float | editconst |
CachedParentToWorld | matrix | const, transient, native |
CanBlockCamera | bool | const |
CastShadow | bool | |
CollideActors | bool | const |
CullDistance | float | const, private |
DecalList | array | const, native, private |
DecalsToReattach | array<DecalComponent> | const, transient, private |
DepthPriorityGroup | ESceneDepthPriorityGroup | const |
DetachFence | int | const, native, private |
DetailMode | EDetailMode | const |
FogVolumeComponent | FogVolumeDensityComponent | const, transient |
HiddenEditor | bool | const |
HiddenGame | bool | const |
LastRenderTime | float | transient |
LastSubmitTime | float | const, transient |
LightEnvironment | LightEnvironmentComponent | const |
LightingChannels | LightingChannelContainer | const |
LocalToWorld | matrix | const, transient, native |
LocalToWorldDeterminant | float | const, transient, native |
MassiveLODDistance | float | |
MaxDrawDistance | float | const, private |
MinDrawDistance | float | |
MotionBlurInfoIndex | int | const, transient, native |
MotionBlurInstanceScale | float | |
OctreeNodes | array | const, transient, native |
OutlineColor | struct | no declaration: type is approximate |
OverrideLightComponent | LightComponent | const, transient |
PhysMaterialOverride | PhysicalMaterial | const |
PreviewEnvironmentShadowing | byte | |
PreviousLightEnvironment | LightEnvironmentComponent | const, transient, private |
RBChannel | ERBCollisionChannel | const |
RBCollideWithChannels | RBCollisionChannelContainer | const |
RBDominanceGroup | byte | |
ReplacementPrimitive | PrimitiveComponent | |
Rotation | rotator | const |
Scale | float | const |
Scale3D | vector | const |
SceneInfo | pointer | const, transient, native, private |
ScriptRigidBodyCollisionThreshold | float | |
ShadowParent | PrimitiveComponent | const |
Tag | int | const, transient, native |
Translation | vector | const |
TranslucencySortPriority | int | |
ViewOwnerDepthPriorityGroup | ESceneDepthPriorityGroup | const |
VisibilityId | int |
Functions¶
| Name | Declaration |
|---|---|
AddForce | final native function AddForce(vector Force, optional vector Position, optional name BoneName) |
AddImpulse | final native function AddImpulse(vector Impulse, optional vector Position, optional name BoneName, optional bool bVelChange) |
AddRadialForce | final native function AddRadialForce(vector Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff) |
AddRadialImpulse | final native function AddRadialImpulse(vector Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff, optional bool bVelChange) |
AddTorque | final native function AddTorque(vector Torque, optional name BoneName) |
ClosestPointOnComponentToComponent | native function GJKResult ClosestPointOnComponentToComponent(out PrimitiveComponent OtherComponent, out vector PointOnComponentA, out vector PointOnComponentB) |
ClosestPointOnComponentToPoint | final native function GJKResult ClosestPointOnComponentToPoint(out vector POI, out vector Extent, out vector OutPointA, out vector OutPointB) |
GetPosition | native function vector GetPosition() |
GetRootBodyInstance | final native function RB_BodyInstance GetRootBodyInstance() |
GetRotation | native function rotator GetRotation() |
InitRBPhys | final native function InitRBPhys() |
PutRigidBodyToSleep | final native function PutRigidBodyToSleep(optional name BoneName) |
RetardRBLinearVelocity | final native function RetardRBLinearVelocity(vector RetardDir, float VelScale) |
RigidBodyIsAwake | final native function bool RigidBodyIsAwake(optional name BoneName) |
SetAbsolute | native function SetAbsolute(optional bool NewAbsoluteTranslation, optional bool NewAbsoluteRotation, optional bool NewAbsoluteScale) |
SetActorCollision | final native function SetActorCollision(bool NewCollideActors, bool NewBlockActors, optional bool NewAlwaysCheckCollision) |
SetBlockRigidBody | final native function SetBlockRigidBody(bool bNewBlockRigidBody) |
SetCullDistance | final native function SetCullDistance(float NewCullDistance) |
SetDepthPriorityGroup | final native function SetDepthPriorityGroup(ESceneDepthPriorityGroup NewDepthPriorityGroup) |
SetHidden | final native function SetHidden(bool NewHidden) |
SetIgnoreOwnerHidden | final native function SetIgnoreOwnerHidden(bool bNewIgnoreOwnerHidden) |
SetLightEnvironment | final native function SetLightEnvironment(LightEnvironmentComponent NewLightEnvironment) |
SetLightingChannels | final native function SetLightingChannels(LightingChannelContainer NewLightingChannels) |
SetNotifyRigidBodyCollision | final native function SetNotifyRigidBodyCollision(bool bNewNotifyRigidBodyCollision) |
SetOnlyOwnerSee | final native function SetOnlyOwnerSee(bool bNewOnlyOwnerSee) |
SetOutlineColor | function SetOutlineColor(struct NewColor) (no declaration: types are approximate) |
SetOutlined | function SetOutlined(bool bNewVal) (no declaration: types are approximate) |
SetOwnerNoSee | final native function SetOwnerNoSee(bool bNewOwnerNoSee) |
SetPhysMaterialOverride | final native function SetPhysMaterialOverride(PhysicalMaterial NewPhysMaterial) |
SetRBAngularVelocity | final native function SetRBAngularVelocity(vector NewAngVel, optional bool bAddToCurrent) |
SetRBChannel | final native function SetRBChannel(ERBCollisionChannel Channel) |
SetRBCollidesWithChannel | final native function SetRBCollidesWithChannel(ERBCollisionChannel Channel, bool bNewCollides) |
SetRBCollisionChannels | final native function SetRBCollisionChannels(RBCollisionChannelContainer Channels) |
SetRBDominanceGroup | final native function SetRBDominanceGroup(BYTE InDomGroup) |
SetRBLinearVelocity | final native function SetRBLinearVelocity(vector NewVel, optional bool bAddToCurrent) |
SetRBPosition | final native function SetRBPosition(vector NewPos, optional name BoneName) |
SetRBRotation | final native function SetRBRotation(rotator NewRot, optional name BoneName) |
SetRotation | native function SetRotation(rotator NewRotation) |
SetScale | native function SetScale(float NewScale) |
SetScale3D | native function SetScale3D(vector NewScale3D) |
SetShadowParent | final native function SetShadowParent(PrimitiveComponent NewShadowParent) |
SetTraceBlocking | final native function SetTraceBlocking(bool NewBlockZeroExtent, bool NewBlockNonZeroExtent) |
SetTranslation | native function SetTranslation(vector NewTranslation) |
SetViewOwnerDepthPriorityGroup | final native function SetViewOwnerDepthPriorityGroup(bool bNewUseViewOwnerDepthPriorityGroup, ESceneDepthPriorityGroup NewViewOwnerDepthPriorityGroup) |
ShouldComponentAddToScene | final native function bool ShouldComponentAddToScene() |
WakeRigidBody | final native function WakeRigidBody(optional name BoneName) |
Default values¶
LastRenderTime=-1000
Scale=1.0
MotionBlurInstanceScale=1.0
Scale3D=(X=1.0,Y=1.0,Z=1.0)
BoundsScale=1
MinDrawDistance=0
DepthPriorityGroup=SDPG_World
bAllowCullDistanceVolume=TRUE
bUseAsOccluder=FALSE
CastShadow=FALSE
bCastDynamicShadow=TRUE
bCastStaticShadow=TRUE
bAcceptsDynamicDominantLightShadows=TRUE
bAcceptsLights=FALSE
bAcceptsDynamicLights=TRUE
bSelectable=TRUE
bAcceptsStaticDecals=FALSE
bAcceptsDynamicDecals=TRUE
bAllowDecalAutomaticReAttach=TRUE
bAcceptsDecalsDuringGameplay=TRUE
AlwaysLoadOnClient=TRUE
AlwaysLoadOnServer=TRUE
bAllowShadowFade=TRUE
bSupportedOnMobile=TRUE
RBChannel=RBCC_Default
RBDominanceGroup=15
PreviewEnvironmentShadowing=180
CanBlockCamera=TRUE
bBlockFootPlacement=TRUE
bAllowAmbientOcclusion=TRUE
VisibilityId=-1
Inherited¶
| From | Members |
|---|---|
| ActorComponent | 7 properties, 4 functions |
| Component | 2 properties, 0 functions |
| Object | 13 properties, 308 functions |