18-02-2018, 11:31 PM
(18-02-2018, 11:05 PM)Hur4c4n Wrote: Hi there,
I just bought the Obi cloth package and I got the same problem. Once I imported the package into my existing project, I got a compiler error message:
Assets/Obi/Editor/ObiParticleActorEditor.cs(199,18): error CS1061: Type `Gradient' does not contain a definition for `SetKeys' and no extension method `SetKeys' of type `Gradient' could be found. Are you missing an assembly reference?
Assets/Obi/Editor/ObiParticleActorEditor.cs(592,26): error CS1061: Type `Gradient' does not contain a definition for `Evaluate' and no extension method `Evaluate' of type `Gradient' could be found. Are you missing an assembly reference?
Assets/Obi/Editor/ObiParticleActorEditor.cs(593,30): error CS1061: Type `Gradient' does not contain a definition for `Evaluate' and no extension method `Evaluate' of type `Gradient' could be found. Are you missing an assembly reference?
Can you help me? We need to make this package work in our project urgently. Thanks
Hi,
This would be an issue with your project. Check that you haven't re-defined the Gradient class in one of your scripts. If you have, you could either rename the class (as Unity already defines "Gradient") or place it in its own namespace.
cheers,