I want to know how can I change camera view from one camera component to another camera. The two camera components are in the same actor. Help me. This soft frustrate me always.
afaik, you can’t change cameras to two components in the same actor.
what you can do is have a scene component to store the transform and blend between those.
you could use setviewtargetwithblend, but that takes an actor and will use whatever camera is set.
you can toggle cameras on/off using setactive, but that won’t work with animations.
you might be able to mix both solutions, e.g. setting active on the components, and then call setviewtargetwithblend. but i’m not sure it will actually work, and i discourage it.
iirc the docs i’ve seen recommend using what i’ve described above, having one camera component, and two scene components (or sockets), and tweening the position.
there are multiple ways to lerp it.
1 Like