[Python] Load .egg model file from a string, not from a file

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I'm making a game that'll load an egg from a server, and it has to display it. Every documentation piece says how to load an egg from a file, but not from a plaintext string, so how do I do it? I'd rather not save an egg file to a temporary directory.

    My current code, if you want:

    self.environment = loader.loadModel("models/world")
    self.environment.reparentTo(self.workspace)

    Continue reading...

Compartilhe esta Página