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.
VAT 3.0 Unity install error
2381 5 4- seeplus
- Member
- 33 posts
- Joined: Nov. 2019
- Offline
- techsaby
- Member
- 4 posts
- Joined: Jan. 2018
- Offline
- MaiAo
- Staff
- 99 posts
- Joined: Feb. 2021
- Offline
- MaiAo
- 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.csthat references 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.
There is a line in Unity's ShaderSubGraphImporter.cs
GraphPrecision propGraphPrecision = prop.precision.ToGraphPrecision(graph.graphDefaultPrecision);
prop.precision
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
- techsaby
- 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.csthat referencesGraphPrecision propGraphPrecision = prop.precision.ToGraphPrecision(graph.graphDefaultPrecision);and likely that is causing issues with the Keyword and Dropdown properties present in VAT3 shaders.prop.precision
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?
- Gand
- Member
- 18 posts
- Joined: June 2020
- Offline
-
- Quick Links