Gets the height of a given texture asset.


GML Code Example


Argument Description
tex The texture asset to use

Returns: Real


Returns the height of the texture with the given id, which is always a value within the range 0 - 1. This can then be used when mapping textures to models or primitives.


GML Code Example

tex_h = texture_get_height(surface_get_texture(global.Surf));

The above code will get the height of the texture taken from a previously created surface.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here