strix-support I’d like to define a custom class and use message relays to pass it. I consulted the documentation and followed the description, but it doesn’t work. What’s wrong? > 日本語
strix-support Please check the following points: The C++ source files that define your custom classes needs to be placed in Plugins/StrixSDK/Source/StrixSDK/Public in your project. You can’t put them in Source/Game. Strix Unreal SDK User’s Guide describes to modify Plugins/StrixSDK/Source/StrixSDK/Public/StrixNetworkFacade.h and Plugins/StrixSDK/Source/StrixSDK/Private/StrixNetworkFacade.cpp to add functions to handle received relay messages (RegisterRelayNotificationHandler and RegisterDirectRelayNotificationHandler). The functions that perform these processing should be declared as member functions of the UStrixNetworkFacade class, and their implementation should be written in the file StrixNetworkFacade.cpp as described. If you write an equivalent processing in another class, they don’t work. Receivers need to use a custom class before receiving a message containing the custom class. You should call MetaClassT<CustomClass>::Get() upon the initialization of the SDK library (Immediately after calling InitializeStrixNetwork is recommended.)