NullRef exception in AmplifyMotionObject [SOLVED]

Full-scene Motion Blur for Unity Pro
Post Reply
any_user
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

NullRef exception in AmplifyMotionObject [SOLVED]

Post by any_user »

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?
User avatar
Diogo Teixeira
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: NullRef exception in AmplifyMotionObject

Post by Diogo Teixeira »

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
any_user
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: NullRef exception in AmplifyMotionObject

Post by any_user »

That's perfect, thanks!
User avatar
Diogo Teixeira
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: NullRef exception in AmplifyMotionObject

Post by Diogo Teixeira »

Research & Development at Amplify Creations
Post Reply