Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShaderLab attributes' parameters are not parsed correctly when they begin with numbers #857

Closed
ChudeRonczki opened this issue Oct 22, 2018 · 1 comment · Fixed by #1149
Closed
Assignees
Milestone

Comments

@ChudeRonczki
Copy link

An error is reported whenever a parameter for an attribute starts with a number, but contains any character that is not a number. Examples:

[KeywordEnum(6 Frames Layout, Latitude Longitude Layout)] _Mapping("Mapping", Float) = 1 [Enum(360 Degrees, 0, 180 Degrees, 1)] _ImageType("Image Type", Float) = 0

@IvanPashchenko
Copy link
Collaborator

Note: you can write almost anything you want inside the attributes, e.g.

[AsdfsfsfSD(dasdasdasda]
 _ImageType("Image Type", Float) = 0

will not cause any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants