question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VertexGradientPlugin Error in Unity 2018.4.5

See original GitHub issue

image

Assets/CharTween/Scripts/VertexGradientPlugin.cs(14,18): error CS0534: `CharTween.VertexGradientPlugin' does not implement inherited abstract member `DG.Tweening.Plugins.Core.ABSTweenPlugin<TMPro.VertexGradient,TMPro.VertexGradient,DG.Tweening.Plugins.Options.NoOptions>.SetFrom(DG.Tweening.Core.TweenerCore<TMPro.VertexGradient,TMPro.VertexGradient,DG.Tweening.Plugins.Options.NoOptions>, TMPro.VertexGradient, bool)'

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

3reactions
Lir10commented, Nov 24, 2020

For me it worked by adding the following:

        public override void SetFrom(TweenerCore<VertexGradient, VertexGradient, NoOptions> t, VertexGradient vg, bool  setImmediately, bool isRelative)
        {
            var prevEndVal = t.endValue;
            t.endValue = t.getter();
            t.startValue = isRelative ? Add(t.endValue, prevEndVal) : prevEndVal;
            t.startValue = prevEndVal;
            t.setter(t.startValue);
        }

        public override void SetFrom(TweenerCore<VertexGradient, VertexGradient, NoOptions> t, bool isRelative)
        {
            var prevEndVal = t.endValue;
            t.endValue = t.getter();
            t.startValue = isRelative ? Add(t.endValue, prevEndVal) : prevEndVal;
            t.startValue = prevEndVal;
            t.setter(t.startValue);
        }
3reactions
archgamecommented, Apr 21, 2020

Adding the following code in the VertexGradientPlugin class, fixed it for me

public override void SetFrom(TweenerCore<VertexGradient, VertexGradient, NoOptions> t, VertexGradient vg, bool isRelative)
        {
            var prevEndVal = t.endValue;
            t.endValue = t.getter();
            t.startValue = isRelative ? Add(t.endValue, prevEndVal) : prevEndVal;
            t.startValue = prevEndVal;
            t.setter(t.startValue);
        }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · mdechatech/CharTweener
Only works first run (Domain reload off?) #9 opened on May 24, 2022 ; VertexGradientPlugin Error in Unity 2018.4.5. #5 opened on Jan...
Read more >
Troubleshooting - Unity's Package Manager
Troubleshooting · Error messages in the Package Manager window · Package Manager missing or window doesn't open · Problems after upgrading Unity to...
Read more >
Gradle build failed
Now it's giving build gradle error. In my build-tools folder their are 2 file. One is 28.0.3. Second is 29.0.0-rc2
Read more >
Unity 2023.1.5
Editor: Fixed for ArgumentNullException and Assertion failed errors thrown when enabling Opaque Texture, using the Hierarchy search bar, ...
Read more >
Unity 2020.3.38
Fixes · 2D: Fixed case in VirtualRedirectTransfer when loading AssetBundle while entering Play Mode. · 2D: Mouseclick with Alt/Option on a sprite ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found