- Home /
How to manipulate sprites in 3D space for cockpit
I am designing a combat flight sim (similar to DCS world) and I have got the stage where I am coding the 3d cockpit of the aircraft, like multi-function-displays for example. Currently, I have a world space canvas on each MFD and I add a Spriterenderer and create sprites as and when I need them. However, I have no idea how to set the position of the sprite on display or how to move them during the game loop. They always center on the origin of the canvas.
I would appreciate any advice on how to do this.
Sprites don't work with canvases, that would be Image.
@hexagonius thanks for the reply.
Is there a difference in performance between the two? Also, can I add multiple images to 1 canvas and manipulate the positions with a script? Because having to add a GameObject with a SpriteRenderer for each sprite, seemed to cost fps.
Your answer
Follow this Question
Related Questions
load and switch sprite tiles programatically? 0 Answers
How can I use one 2D sprite with different pivot points? 0 Answers
Set scale value of a sprite to match with size (with, height) of an image? 2 Answers
Translucent sprites appear solid 0 Answers
Background .png image gets a section of it cut off 0 Answers