You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this piece of code, I need to automatically be able to modify values of their components. My components all derive from Component class, e.g. MeshComponent : Component, TransformComponent : Component.
I found that when casting component to (MeshComponent*) and then doing set_value works, but how would I automatically convert this to the correct type? I have tried using var.convert(type); but that just returns 0, is it because type is not a pointer?
I have this piece of code, I need to automatically be able to modify values of their components. My components all derive from Component class, e.g. MeshComponent : Component, TransformComponent : Component.
I found that when casting component to (MeshComponent*) and then doing set_value works, but how would I automatically convert this to the correct type? I have tried using
var.convert(type);
but that just returns 0, is it because type is not a pointer?The text was updated successfully, but these errors were encountered: