Why can't I move my Actor in Viewport?

Hi,

It may look like a silly question but I could not find any information related with issue I am having. problem is that I have created a class derived by Actor. I created a blueprint instance of it. So far so good but when I put that actor into viewport, I am not able to move it around. It is just stuck in center of scene and I cant move it. What is reason behind it?

I am able to transform a mesh which is child of RootComponent. However, when I put that mesh directly into rootcomponent, I cannot move it why?

Video Demo Link

1 Like

Hey ErayT,

Can you be more specific about process you used to create your new class? Any details might help us to reproduce this. When you drag it into your level from Content Browser, you aren’t able to move it?

Root components can’t be moved, rotated, or scaled within Blueprint Editor because they are basis for relative location. You should be able to adjust entire Blueprint within level to get transform you want. If you want to adjust it within Blueprint, you’ll need to make it a child of root component. Generally, it’s good practice to use an empty SceneComponent as your root for Blueprints.

I have uploaded a video to express my problem clearly.

Hey ErayT,

problem is that you’re trying to attach your CloudMesh to RootComponent without declaring what RootComponent actually is. Replace line:

CloudMesh->AttachTo(RootComponent);

in your Cloud.cpp with:

RootComponent = CloudMesh;

and you should be able to move Mesh around as expected.

Hope that helps!

Also when you’re creating blueprint, first of all create “scene” it will be root component and all others will be movable