I want to be able to create a new collision channel via Project Settings and get its ECollisionChannel
value at runtime using the name I configured in the Project Settings for it.
I found that the configuration for each user-added collision channel is saved in the Config/DefaultEngine.ini file, in a configuration named “DefaultChannelResponses” there.
I need that because I’m developing an UActorComponent
in a plugin library, which I don’t know upfront which exact value of ECollisionChannel
will be associated with a given channel name.
I also found that object is loaded in a class called UCollisionProfile
class. It’s a singleton class and it loads the “DefaultChannelResponses” configuration in a variable of the same name, but it’s private and I didn’t find any way to get it.
Is this the right way of handling that?