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.


Messages - Leonardherndon

Pages: [1]
1
With that information I was able to figure out that the child class was overriding the start method. So sorry to waste your time with that.

2
Although that may help me avoid any future issues, that change did not have any effect on my problem. It seems to be losing the reference or the reference is not being set correctly. Here is a screenshot of the script: http://puu.sh/mr6xy/c8e12d7e47.png (Excuse the Mess).

Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
Ship.SwitchLane () (at Assets/Scripts/Ship.cs:245) <-- [POINTS TO shipLaneTween.ChangeEndValue]
Ship.FixedUpdate () (at Assets/Scripts/Ship.cs:177)

3
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();
}

4
DOTween & DOTween Pro / Re: Tweens stop working on iOS device
« on: December 10, 2015, 06:13:09 PM »
I'd like to know the answer to this as well. Thanks

5
DOTween & DOTween Pro / Re: DoPath + rotate
« on: November 10, 2015, 11:26:31 PM »
I would love to know the answer to this as well.

6
DOTween & DOTween Pro / Re: Change Duration - Path
« on: October 13, 2015, 05:26:53 PM »
I've created a sequence that dynamically changes it's position each time its ran. How about breaking your path into chunks and using a callback between nodes to change your speed?

7
DOTween & DOTween Pro / Re: Proper use of DOGradientColor
« on: October 12, 2015, 01:44:50 AM »
That was it. I'm dumb. Haha. Thanks!

8
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.

9
It definitely is case #2.

10
Nevermind. I found it. PathType is incompatible with the QuickCutsceneCreator plugin on the assetstore.

11
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: http://puu.sh/krAOY/38c824befb.png
Build Version SS: http://puu.sh/krASx/b3cae5b466.png

Pages: [1]