Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

var ignoreLayers: int;
int ignoreLayers;
ignoreLayers as int

Description

Which object layers are ignored by the projector.

See layer mask.

By default this is zero - i.e. no layers are ignored. Each set bit in ignoreLayers will make this layer not affected by the projector.

	function Start() {
		var proj : Projector = GetComponent (Projector);
		// Make the projector ignore Default (0) layer
		proj.ignoreLayers = (1<<0);
	}