Skip to content

Negative default value issue #17

Closed
@ChebanovDD

Description

@ChebanovDD

Describe the bug

It is impossible to set a negative value as the default value for UxmlAttribute.

The following code generates: error UXMLG003: UxmlAttribute for 'MaxTextLength' property was not created. The default property and attribute value must be of the same type.

[UxmlAttribute(-1)]
private int MaxTextLength { get; set; }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions