I am not sure I understand (or partially understand) the purpose of SkookumScriptClassData.
In the Wombat (twin stick shooter) example, if I remove
SookumScriptClassData, nothing bad happens. However, if I give it the name of another class in the
Script > Script Actor Class Name then that particular class (i.e. not
PlayerOnePawn) is initialized (i.e. the
constructor called) and an error:
Class ‘PlayerOnePawn’ has data but UObject has no embedded instance
which makes sense, that is not able to connect the
UObject with its counterpart. So my guess is that:
SkookumScriptClassDatais needed as a mechanism for to initialize/de-initialize through the components interface.
Script > Script Actor Class Nameis left blank, the class picked will be the same as the BP name
If all that is correct:
- why would I ever specify a different script class in the
- how come removing the
SkookumScriptClassDatacomponent has no effect (I expect
PlayerOnePawnto stop working completely but that’s not the case)?