- Home /
Lerpz Droppable Pickups
Ok I'm stumped on how to properly instantiate the droppable objects in Lerpz. When I click on the "Fuel Cell Droppable" tab in EnemyDamage scrpit in the Inspector - it says "none". If I drag and drop the prefabs from the project window onto the appropriate tabs, I still get "The prefab you want to instantiate it null" error.
Help please!!
Answer by ericksson · Apr 24, 2010 at 08:45 AM
I tried this on my computer and it works! Are you trying to add the prefab in the script by selecting it in the Project panel or are you dropping the prefab onto an instance of the script in the Hierarchy panel. Try it either way!
One way to test if you are doing everything right is start the game and click on the script in the Hierarchy panel. If your prefab is there then everything is OK!
For a longer discussion on this problem also check this: http://answers.unity3d.com/questions/5871/the-prefab-you-want-to-instantiate-is-null
Your answer
Follow this Question
Related Questions
Instatiate lerp problem(2D) 1 Answer
Enemy Damage problem 1 Answer
Checking if object intersects? 1 Answer
Instantiating GUI text after 2nd object is destroyed 1 Answer
AI optimization 2 Answers