NullRef exception in AmplifyMotionObject [SOLVED]

Full-scene Motion Blur for Unity Pro

NullRef exception in AmplifyMotionObject [SOLVED]

Postby any_user » Sat Mar 29, 2014 7:07 pm

I get this nullref exception when I instantiate objects with the AmplifyMotionObject script attached.

Code: Select all
NullReferenceException: Object reference not set to an instance of an object
AmplifyMotionObject.Start ()


The error appears only when there is no camera with the amplify motion effect in the scene. In my case, it happens when I start the game in batchmode for dedicated game server instance, where it doesn't create cameras.

I was thinking about a workaround to remove all AmplifyMotionObject scripts right after instantiating objects (but before start), in case there is no camera, but that's a bit cumbersome. Or just add a dummy camera with the effect.

Is there an easier fix for this? There is no way to get the source code for AmplifyMotion, right?
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: NullRef exception in AmplifyMotionObject

Postby Diogo Teixeira » Mon Mar 31, 2014 3:04 pm

Thanks for reporting this bug. This is definitely something we can fix.

We'll be releasing an update very soon, I'll make sure it includes a fix for it.
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: NullRef exception in AmplifyMotionObject

Postby any_user » Tue Apr 01, 2014 5:34 am

That's perfect, thanks!
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: NullRef exception in AmplifyMotionObject

Postby Diogo Teixeira » Wed Apr 16, 2014 3:49 pm

Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am


Return to Amplify Motion

Who is online

Users browsing this forum: No registered users and 5 guests