Gui.play_flipbook() hash vs string

Hi there,

Could anyone tell me the difference between using one over?

gui.play_flipbook(node, "image") -- string

vs

gui.play_flipbook(node, hash("image")) -- hash

Cheers,

My guess is that if you pass in a string it gets converted into a hash under the hood. So if you’re concerned about performance then using a pre calculated hash might be faster. I suppose this could be verified by running a test.

2 Likes

Makes sense thanks @Alex_8BitSkull :slight_smile:

2 Likes