0 like 0 dislike

Getting this warning on a 1.12 file opened in 1.13
Spawn script: L_9: Local variable shadows global symbol 'nextid'

float nextid = select(spawner.EmittedCount+1, spawner.EmittedCount, spawner.EmittedCount % 2 == 0);

by gtapperdesign (1k points)

1 Answer

0 like 0 dislike
Hi !

Make sure you don't have a sampler or attribute named "nextid"

If you do, there is an ambiguity in the script, which is why there is this warning (it is considered very error-prone: based on which line you reference "nextid" in, it will either use the attribute, or the local variable)
by Julien (35.2k points)