VAT 3.0 Unity install error

   2433   5   4
User Avatar
Member
33 posts
Joined: Nov. 2019
Offline
Hi,

Thanks for reaching my post.

I have ( NullReferenceException: Object reference not set to an instance of an object ) when ever I try to install the plugin to Unity (2021.2.0f1. I have another error inside shadergraph.
Edited by seeplus - Dec. 1, 2021 14:32:31

Attachments:
unknown.png (144.7 KB)
Capture_02.PNG (445.4 KB)

User Avatar
Member
4 posts
Joined: Jan. 2018
Offline
I am also getting similar error for the shaders. Anyone knows how to fix it? I am using Unity version 2021.2.7f1.
Edited by techsaby - Jan. 7, 2022 07:29:56
User Avatar
Staff
99 posts
Joined: Feb. 2021
Offline
techsaby
I am also getting similar error for the shaders. Anyone knows how to fix it? I am using Unity version 2021.2.7f1.

I'm getting inconsistent results between versions. Will test using 2.7f1 since it's an official version now. Will update as soon as I found a solution.
Mai Ao
Senior Technical Lead of SideFX Labs
youtube.com/@notverydarkmagic
User Avatar
Staff
99 posts
Joined: Feb. 2021
Offline
It appears that in recent versions, including 2.7f1, sub shader graph Properties without the Precision setting, such as Keyword, Dropdown, will cause the NullReferenceException error.

There is a line in Unity's ShaderSubGraphImporter.cs
GraphPrecision propGraphPrecision = prop.precision.ToGraphPrecision(graph.graphDefaultPrecision);
that references
prop.precision
and likely that is causing issues with the Keyword and Dropdown properties present in VAT3 shaders.

This error didn't exist with previous Unity versions. I'm in contact with Unity to see if they can fix this. I technically can implement a workaround by turning those precision-less properties into simple Booleans properties, but that is not ideal for performance.
Edited by MaiAo - Jan. 7, 2022 18:30:46
Mai Ao
Senior Technical Lead of SideFX Labs
youtube.com/@notverydarkmagic
User Avatar
Member
4 posts
Joined: Jan. 2018
Offline
MaiAo
It appears that in recent versions, including 2.7f1, sub shader graph Properties without the Precision setting, such as Keyword, Dropdown, will cause the NullReferenceException error.

There is a line in Unity's ShaderSubGraphImporter.cs
GraphPrecision propGraphPrecision = prop.precision.ToGraphPrecision(graph.graphDefaultPrecision);
that references
prop.precision
and likely that is causing issues with the Keyword and Dropdown properties present in VAT3 shaders.

This error didn't exist with previous Unity versions. I'm in contact with Unity to see if they can fix this. I technically can implement a workaround by turning those precision-less properties into simple Booleans properties, but that is not ideal for performance.


Is there any update from Unity side yet?
User Avatar
Member
19 posts
Joined: June 2020
Offline
I looking for any solution for this too. This feature gives hundreds of possibilities and I wanted to used it for project i working on.
  • Quick Links