Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by coreysnyder

I know there is a way to say

if(!isEditor){
   //Don't run this code. 
}

How?

1 decade ago by quidmonkey

If by editor you mean weltmeister:

if( !ig.global.wm ){

}

1 decade ago by coreysnyder

Thank you much. To anyone search in the forum for this same response as I did and had no luck:
"how to hide in weltmeister"
"how to keep weltmeister from drawing"

1 decade ago by Joncom

You could also keep Weltmeister from loading a particular entity at all using:
EntityExample = ig.Entity.extend({

	_wmIgnore: true,
	
	...
});
Page 1 of 1
« first « previous next › last »