Jump to content

World script changes do not have effect


photo

Recommended Posts

Hi

 

I have a world script that creates some objects in the world.

When I change some values in the script and rerun Unigine the changes have no effect.

Only when renaming the world files to some new name and loading those files will have the correct result.

 

Are scripts cached and do I need to clear this cache?

Link to comment

I am guessing here.

They should be generated again...

If the ones you already created are not removed.

if you are checking if the objects exist before creating them than you might not end up creating new objects.

Link to comment

I'm talking about a complete fresh rerun of Unigine. So nothing will be in it initially.

It just loads a world corresponding to on old world file.

 

Anybody knows if there is some kind of caching involved that causes this?

Link to comment

Are scripts cached and do I need to clear this cache?

No cache for scripts whatsoever. Every time you run the script anew (reload the world or relaunch the app), objects would be initialized. That is the reason you should not forget to delete them or you will run out of memory.

Link to comment
×
×
  • Create New...