Jump to content

Add Option to Align an Entity to the viewport


beo6
 Share

Recommended Posts

This would make rotating a camera entity way easier, and would also allow to align other entities.

A viewport preview of camera entities would definetly help too but would prevent this from other entities unless we could use that somehow in our own components.

Link to comment
Share on other sites

Every Entity has a Rotation and Position. right?

You can take the Rotation and Position of the Editor Camera and apply it to the Entity Rotation and Position.

image.thumb.png.4aa9c67f0357f6ff66956ba44416bddf.png

That would help in case a Component needs some specific Rotation and Position. And since for example the Empty Entity does not show any Rotation in its icon, that would help with that.

 

See also my Camera Movement Component to why this would be useful.

 

Unless you have a better idea to do this.

Alternatively i would think something like allowing people to create custom entities that you can give some kind of a model to visualize its direction.

In Unity for example you have the option `GameObject > Align With View`

 

 

  • Upvote 1
Link to comment
Share on other sites

As already written.

To not have to guess the rotation and position manually.

You move the editor view to a location, select the entity and press the button and it is moved to where the camera is and is rotated the way the view is rotated.

 

Probably the main usecase is for camera entities so you don't have to manually enter values if you want a specific shot the camera should focus on.

But i think it can also be useful for other entity types as mentioned above.

 

See also 

if you still can't understand.

  • Like 1
Link to comment
Share on other sites

Basically he wants a copy and paste button near the scene browsers rotation, position and scale settings.  It does prove useful in some cases, I used that feature in Unity all the time.   

I believe Unity has a hotkey shortcut to copy the cameras position and rotation of the editors camera and paste it to the selected object in viewport.

 

 

 

  • Like 1

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...