Jump to content

Prefab problem ?


YouGroove
 Share

Recommended Posts

I've got this message :

Possible reference count error for asset "c:/le3/shootemup_kit/materials/effects/default.mat"

 

That happens when i tell some ship prefab in it's input script a path to a particle prefab.

The particle has no problem, but once i put in on the ship, when the ship prefab is loaded and spawned with the smoke prefab in it, i have this message and the game crashes.

 

Anyone has got some idea ?

Stop toying and make games

Link to comment
Share on other sites

How to test :

 

1) download ShootEmUp kit :

http://www.leadwerks.com/werkspace/files/file/524-shootemup-kit/

Dezip and open the project in LE3.

 

2) create a particle emitter in the 3D scene

-add a material ike LE3 default smoke

- attach smoke lua script from scripts of the project

smoke1.jpg

 

2) Save the object (particle and smoke script attached) as prefab named for exampel : smokeDestroy

smoke2.jpg

 

 

3) Select redShip model from from scene panel in prefab hierarchy and attach the smoke prefab to it

smoke3.jpg

 

4) save the redShip object as redShip prefab

smoke4.jpg

 

Run the game to see the error.

Stop toying and make games

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...