Search Issue Tracker

By Design

Votes

0

Found in

2020.3.0f1

2021.3.0f1

2022.1.0a7

2022.2.0a9

2023.1.0a1

Issue ID

UUM-8504

Regression

Yes

Caching PP doesn't put a space if "\ \n" is used

-

STR:
1. Create a new project using the 3D template.
2. Copy the attached shader to the Assets folder.
3. Add a cube to the scene.
4. Create a new material, assign to the cube.
5. Assign the shader from step 2 to the material.
Expected: cube renders solid white.
Actual: cube renders pink, errors in the console.

Affects 2020.3+.

Workaround: put at least one space between "FOO" and "\" or before "uv":
#define FOO \
uv

  1. Resolution Note:

    Preprocessor behaviour is as designed and has tests targeting this behaviour.

Add comment

Log in to post comment