Editor SDK: How to get blob from WebGL texture?

0 favourites
  • 4 posts
From the Asset Store
HUGE pack of animated pixel art Slimes Characters. Contains smooth and stylized pixelart Enemies/Mobs/Bosses animations
  • Hi devs, does anyone know how I can get the image of the tilebackground as blob or image64?

    OnCreate()

    {

    var self = this;

    const object = self.GetProject().GetObjectClassByName("TiledBackground");

    try {

    console.log(object.GetImage().GetCachedWebGLTexture())

    } catch (err) {

    console.log(err)

    }

    }

  • It's not currently supported. What do you need it for? You could post a feature request.

  • It's not currently supported. What do you need it for? You could post a feature request.

    I'm currently building some sort of layout sync which basically gets all the objects in a layout and then sends all this data to a server. Everything works fine with X,Y Position, Width and Height - the only thing I'm missing here is getting the image of e.g. a Tiled Background. It would really level up edittime if we can somehow get the images of objects - I mean for what is the WebGL texture else?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's not currently supported. What do you need it for? You could post a feature request.

    What would really help me as well (and maybe save you some time instead of implementing a whole new feature in the SDK) would be if you could tell me how I can get those blob URLs from each object? As you can see I can simply grab them using F12 inspector while an animation editor is open - however I'm not sure on how I could automate that as you would then need to manually open the editor image editor of each sprite at once.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)