Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FSkeletalMeshSceneProxy
- FPrimitiveSceneProxy::CreateHitProxies()
- FSkeletalMeshSceneProxy::CreateHitProxies()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/SkeletalMeshSceneProxy.h |
Include | #include "SkeletalMeshSceneProxy.h" |
Source | /Engine/Source/Runtime/Engine/Private/SkeletalMesh.cpp |
virtual HHitProxy * CreateHitProxies
(
UPrimitiveComponent * Component,
TArray < TRefCountPtr < HHitProxy > > & OutHitProxies
)
Remarks
All FPrimitiveSceneProxy derived classes can decide to fully override the HHitProxy creation, or add their own and call any of their base classes to add theirs.
Classes deriving from FPrimitiveSceneProxy which are meant to be used with IPrimitiveComponent should override both CreateHitProxies(UPrimitiveComponent*, ...) and CreateHitProxies(IPrimitiveComponent*, ...) and make the UPrimitiveComponent version call into the IPrimitiveComponent one. This allows their derived classes that are exclusive to UPrimitiveComponent to call into them and to reroute the proxy creation to the IPrimitiveComponent path. Creates the hit proxies are used when DrawDynamicElements is called. Called in the game thread. The hit proxy to use by default for elements drawn by DrawDynamicElements.
Parameters
Name | Description |
---|---|
OutHitProxies | Hit proxes which are created should be added to this array. |