mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
fix: support Unity 6.6+ with ShaderGraph package
This commit is contained in:
+5
@@ -170,7 +170,12 @@ namespace UnityEditor.Rendering.BuiltIn.ShaderGraph
|
|||||||
BlockFields.SurfaceDescription.Alpha,
|
BlockFields.SurfaceDescription.Alpha,
|
||||||
BlockFields.SurfaceDescription.AlphaClipThreshold
|
BlockFields.SurfaceDescription.AlphaClipThreshold
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if UNITY_6000_6_OR_NEWER
|
||||||
|
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(EntityId.None, graphItem, name, null, null);
|
||||||
|
#else
|
||||||
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, graphItem, name, null, null);
|
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, graphItem, name, null, null);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user