UMRMeshComponent

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MRMesh

Header

/Engine/Source/Runtime/MRMesh/Public/MRMeshComponent.h

Include

#include "MRMeshComponent.h"

Syntax

class UMRMeshComponent :
    public UPrimitiveComponent,
    public IMRMesh

Constructors

Name Description

Public function

UMRMeshComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

ForceNavMeshUpdate()

Public function Const

bool

 

GetEnableMeshOcclusion()

Public function Const

bool

 

GetUseWireframe()

Public function

FOnClear &

 

OnClear()

Public function

void

 

SetEnableMeshOcclusion

(
    bool bEnable
)

Public function

void

 

SetEnableNavMesh

(
    bool bEnable
)

Public function

void

 

SetNeverCreateCollisionMesh

(
    bool bNeverCreate
)

Public function

void

 

SetUseWireframe

(
    bool bUseWireframe
)

Public function

void

 

UpdateMesh

(
    const FVector& InLocation,
    const FQuat& InRotation,
    const FVector& Scale,
    TArray< FVector >& Vertices,
    TArray< uint32 >& Indices
)

Updates from HoloLens or iOS

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

void

 

SetCollisionEnabled

(
    ECollisionEnabled::Type NewType
)

Controls what kind of collision is enabled for this body

Public function Virtual

void

 

SetCollisionObjectType

(
    ECollisionChannel Channel
)

Changes the collision channel that this object uses when it moves

Public function Virtual

void

 

SetCollisionProfileName

(
    FName InCollisionProfileName
)

Set Collision Profile Name This function is called by constructors when they set ProfileName This will change current CollisionProfileName to be this, and overwrite Collision Setting

Public function Virtual

void

 

SetCollisionResponseToAllChannels

(
    ECollisionResponse NewResponse
)

Changes all ResponseToChannels container for this PrimitiveComponent. to be NewResponse

Public function Virtual

void

 

SetCollisionResponseToChannel

(
    ECollisionChannel Channel,
    ECollisionResponse NewResponse
)

Changes a member of the ResponseToChannels container for this PrimitiveComponent.

Public function Virtual

void

 

SetCollisionResponseToChannels

(
    const FCollisionResponseContainer&...
)

Changes the whole ResponseToChannels container for this PrimitiveComponent.

Public function Virtual

void

 

SetMaterial

(
    int32 ElementIndex,
    UMaterialInterface* InMaterial
)

UPrimitiveComponent.. public BP function needs to stay public to avoid nativization errors. (RR)

Public function Virtual

void

 

SetWalkableSlopeOverride

(
    const FWalkableSlopeOverride& NewO...
)

Sets a new slope override for this component instance.

Protected function Virtual

void

 

UpdatePhysicsToRBChannels()

Internal function that updates physics objects to match the component collision settings.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

BeginPlay()

Used to detach physics objects before simulation begins.

Public function Virtual

void

 

EndPlay

(
    const EEndPlayReason::Type EndPlayR...
)

Ends gameplay for this component.

Protected function Virtual

void

 

OnActorEnableCollisionChanged()

Called on each component when the Actor's bEnableCollisionChanged flag changes

Overridden from IMRMesh

Name Description

Public function Virtual

void

 

Clear()

Public function Virtual Const

bool

 

IsConnected()

Public function Virtual

void

 

SendRelativeTransform

(
    const FTransform& Transform
)

Public function Virtual

void

 

SetConnected

(
    bool value
)

Classes

Name

Description

Public class

FOnClear

Trackers feeding mesh data to this component may want to know when we clear our mesh data

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback