| FComponentCacheAdapter::GetDesiredClass()
|
Module |
|
Header |
/Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/Adapters/StaticMeshComponentCacheAdapter.h |
Include |
#include "Chaos/Adapters/StaticMeshComponentCacheAdapter.h" |
Source |
/Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Private/Chaos/Adapters/StaticMeshComponentCacheAdapter.cpp |
virtual UClass * GetDesiredClass() const
Query the class that this adapter wants to drive. This will be used to work out the most likely candidate for an adapter when multiple adapters return SupportType::Derived. For example in the following hierarchy: UPrimitiveComponent
|
UDerivedComponentA
|
UDerivedComponentB
An adapter directly supporing UDerivedComponentA that returns SupportType::Derived for a class of UDerivedComponentB will be picked over an adapter that directly supports UPrimitiveComponent and returns SupportType::Derived for a class of UDerivedComponentB
All classes returned from this MUST have UPrimitiveComponent in their hierarchy as that is the base physically-capable component