Are Loose Texture File Replacements Supposed To Inherit Aspects Of Original Texture?

Discuss modding questions and implementation details.
User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Are Loose Texture File Replacements Supposed To Inherit Aspects Of Original Texture?

Post by TheLacus »

You can use GetVector2(String, String, Vector2), like in snippet below.

Code: Select all

Vector2 size = xmlManager.GetVector2("width", "height", Vector2.zero)

User avatar
Magicono43
Posts: 1139
Joined: Tue Nov 06, 2018 7:06 am

Re: Are Loose Texture File Replacements Supposed To Inherit Aspects Of Original Texture?

Post by Magicono43 »

TheLacus wrote: Fri Feb 12, 2021 11:15 pm You can use GetVector2(String, String, Vector2), like in snippet below.

Code: Select all

Vector2 size = xmlManager.GetVector2("width", "height", Vector2.zero)
Thanks, i'll try that one instead.

Post Reply