Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Leonardherndon

Pages: [1]
I am trying to create something similar to the follow script example that you have provided. In my scenario I am trying to update the tweens destination location via script. So rather than a true follow I just need to access and manipulate mid tween. For some reason I am getting a NuffRef though my script is quite similar to your follow.cs example. Below is the relevant code. I am getting the null reference when trying to change the end value.

Code: [Select]
Tweener shipLaneTween;

void Start () {
    //Start Tween For Lane Switching
    shipLaneTween = transform.DOMoveX(LM.laneArray [shipLaneDestination].x, 0.5f).SetAutoKill(false);

void FixedUpdate () {
    if (shipLaneCurrent != shipLaneDestination) {
        SwitchLane ();

public void SwitchLane(){
    shipLaneTween.ChangeEndValue(LM.laneArray [shipLaneDestination].x,true).Restart();

DOTween & DOTween Pro / Proper use of DOGradientColor
« on: October 12, 2015, 12:14:27 AM »
Does anyone have an example of the proper use of the DOGradientColor method? I tried using it on a material only to get the error:

Type `UnityEngine.Material' does not contain a definition for `DOGradientColor' and no extension method `DOGradientColor' of type `UnityEngine.Material' could be found (are you missing a using directive or an assembly reference?)

Am I wrong in thinking that I should be able to apply a gradient to a standard shader. The online doc doesn't say much about this.

I am getting this error as I try to compile. Below is a screen shot of my version and the code. You can see in my code SS that PathType isn't showing a definition for CatmullRom.

Code SS:
Build Version SS:

Pages: [1]