We have a new component
TCastleImageTransform, which is now the most advised way to place simple image inside a viewport. This is great for static backgrounds in games, backgrounds that move with player, static pieces of 2D levels etc.
So we now have 2 advised (simple, available in editor, full-featured) ways to handle images:
TCastleImageControl(if you want image be a UI)
TCastleImageTransform allows to easily e.g.:
TCastleImageTransform.Pivot– pivot doesn’t have to be in the center, in can be anywhere, e.g. in any corner of the image, whatever is comfortable in your situation.
repeat the image a number of times using
control the image size by referring to “what size it should pretend to have” instead of only by applying a float scale multiplied by the original size, see
These features were possible previously too (by using image inside
TCastleScene) but now they are more comfortable, exposed as more natural properties.