Repair a uniform after reimporting a shader
Animate a scene and its materials
STUDIO 0.86.4.7 • LESSON 21 OF 35
Renaming a uniform in shader source can leave a saved override with no matching field. You can preserve the old value while deciding where it belongs.
1. Make the mismatch visible
On a project copy, select a shader with a local numeric override. Write down its name and value. In the shader file rename that uniform and its uses, keeping its type and range. Reimport the shader under the same asset ID. Reopen the original object or GUI element’s parameters.
2. Map or remove the old entry
Look for the unresolved old name. Use Map missing uniform when a compatible replacement is offered. Select the new name and verify that the previous value fits the new field. If the replacement already has its own override, check it before changing anything. Use Reset unresolved override when you deliberately want to discard the obsolete value.
3. Check the material again
Compare the edited owner with a second one using the same shader. Reopen the project and recheck both. If the importer rejects a new shader version, read the conversion or renderer error. For example, the simple fragment importer cannot translate an entire Shadertoy mainImage program. Correct or convert the source and retry.
WHAT TO CHECK
A saved numeric value can survive a rename when it fits the new type and range. A float cannot automatically become a texture. Pick an appropriate asset on that new field, and reset the obsolete override only after verifying the result.
