How to do use_fixed_fit_projection for an individual sprite? (SOLVED)

msg.post("@render:/player#sprite", "use_fixed_fit_projection", { near = -1, far = 1 })

I understand that this code does not work like that, but is there any way to individually configure the textures that I want to assign use_fixed_fit_projection to, or to create a rendering filter by specifying the desired textures?

You would have to adjust the scale of the individual game objects.

@britzl Sorry, but I don’t quite understand how, maybe there is an example?
I tried scaling it while updating but still not working

That’s what i wanted, but it can only be done in the GUI settings, ok, no big deal

I’m wondering why the GUI has such powerful property and GO doesn’t, for example I miss the init invisibility and alpha property in GO

We may introduce something similar for components, or even on the game object, but I can’t say when that will happen.

Note that a game object can contain many different components and it is these components which might have a color component, so it doesn’t really make sense to have an alpha value on the game object.

1 Like