I have 2 classes with A extends B and B is overwriting a function of A.
I’m writing a widget that has a function with an instance of A as parameter.
Now I want to call the function with an instance of B so it gets automatically casted to type A.
shouldn’t I be able to call the function of B? or is there a way to cast it back dynamically?
One very, very vague guess (although 90% of the relevant information is missing so just guessing what you mean by “widget” here): are you talking about RPC here rather than local method calls?
For RPC and shared state, serialization and deserialization uses declared types only, not the actual instance type.
Yes, used the RPCs like in the tutorials for own widget creation (with ClientRpc, Connector… etc.)
Is there any way to send it with the actual instance type?