Vector2 field values can be a set in UI scope

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Posts: 1300
Joined: Tue Dec 06, 2016 11:25 am

Vector2 field values can be a set in UI scope

Post by Cherno »

Consider an EventHandler with this UITick:

Code: Select all

Vector2 myVector2;
    override void UiTick()
        myVector2.x = 2;
A Vector2 (probably Vector3 as well) x and y values can be set even though it should be forbidden due to UITick being UI-scoped.
Directly setting the whole Vector2 myVector2 = (2,2); is not possible, though.

Return to “Bugs [GZDoom]”