mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 10:16:54 +08:00
[unity] Fixed error when querying outline properties at LWRP shaders. Closes #1565.
This commit is contained in:
parent
154849484c
commit
68bf9d60df
@ -76,17 +76,21 @@ public class SpineShaderWithOutlineGUI : ShaderGUI {
|
|||||||
#region Virtual Interface
|
#region Virtual Interface
|
||||||
|
|
||||||
protected virtual void FindProperties (MaterialProperty[] props) {
|
protected virtual void FindProperties (MaterialProperty[] props) {
|
||||||
_OutlineWidth = FindProperty("_OutlineWidth", props);
|
|
||||||
_OutlineReferenceTexWidth = FindProperty("_OutlineReferenceTexWidth", props);
|
_OutlineWidth = FindProperty("_OutlineWidth", props, false);
|
||||||
_OutlineColor = FindProperty("_OutlineColor", props);
|
_OutlineReferenceTexWidth = FindProperty("_OutlineReferenceTexWidth", props, false);
|
||||||
_ThresholdEnd = FindProperty("_ThresholdEnd", props);
|
_OutlineColor = FindProperty("_OutlineColor", props, false);
|
||||||
_OutlineSmoothness = FindProperty("_OutlineSmoothness", props);
|
_ThresholdEnd = FindProperty("_ThresholdEnd", props, false);
|
||||||
_Use8Neighbourhood = FindProperty("_Use8Neighbourhood", props);
|
_OutlineSmoothness = FindProperty("_OutlineSmoothness", props, false);
|
||||||
_OutlineMipLevel = FindProperty("_OutlineMipLevel", props);
|
_Use8Neighbourhood = FindProperty("_Use8Neighbourhood", props, false);
|
||||||
|
_OutlineMipLevel = FindProperty("_OutlineMipLevel", props, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void RenderOutlineProperties () {
|
protected virtual void RenderOutlineProperties () {
|
||||||
|
|
||||||
|
if (_OutlineWidth == null)
|
||||||
|
return; // not an outline shader
|
||||||
|
|
||||||
// Use default labelWidth
|
// Use default labelWidth
|
||||||
EditorGUIUtility.labelWidth = 0f;
|
EditorGUIUtility.labelWidth = 0f;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user