- Home /
Question by
sigma-z-1980 · May 15, 2019 at 07:51 PM ·
graphics card
After the upgrade to Unity 2019.1 a method became obsolete
One of the packages I bought on the UAS uses the following method:
Graphics.DrawProceduralIndirect(MeshTopology.Points, cbDrawArgs, 0);
Never had any issue with it. After upgrading from 2017.1 to 2019.2 I get an error:
\error CS0619: 'Graphics.DrawProceduralIndirect(MeshTopology, ComputeBuffer, int)' is obsolete: 'Method DrawProceduralIndirect has been deprecated. Use Graphics.DrawProceduralIndirectNow instead. (UnityUpgradable) -> DrawProceduralIndirectNow(*)'
When I try to use the suggested method, it doesn't exist in the the Graphics
module, although Unity scripting API should extend it. Also UnityEngine doesn't have CommandBuffer.
So what do I do? Do I need to upgrade the scripting interface?
The package (SF Weapons pack) has been deprecated.
Comment