FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.48k stars 339 forks source link

No Texture field in the Inspector #617

Closed realroot2185 closed 3 months ago

realroot2185 commented 3 months ago

https://fyrox-book.github.io/tutorials/platformer/editor_step2.png

I do not have the Texture field. I see this error: [ERROR]: Failed to create GPU texture from Embedded texture. Reason: InvalidTextureData { expected_data_size: 7531544, actual_data_size: 0 }

System:

Kernel: 6.7.5-artix1-1 
arch: x86_64
Distro: Artix Linux
mrDIMAS commented 3 months ago

That's because this tutorial is a bit outdated. Use Material field instead and assign diffuseTexture property in it.

realroot2185 commented 3 months ago

If I click diffuseTexture nothing happens. Right click triggers Show in Asset Browser and nothing happens if I click that.

mrDIMAS commented 3 months ago

Drag a texture from the Asset Browser on diffuseTexture field and it will be assigned.

realroot2185 commented 3 months ago

When I drag it it displays the image far from the pointer. Should I open an issue about that?

mrDIMAS commented 3 months ago

That's intended behaviour.

iamjbq commented 1 month ago

So happy I searched issues first, this has been driving me crazy but I can finally continue on with the tutorial!

mrDIMAS commented 1 month ago

I'm planning to release 0.34 soon (maybe in a week or so) and I'll also update the tutorials (and the book in general) for it. Sorry for the inconvenience.