Axiom.SceneManagers.Octree.OctreeSceneManager.SetOption C# (CSharp) Method

SetOption() public method

public SetOption ( string key, object val ) : bool
key string
val object
return bool
		public bool SetOption( string key, object val )
		{
			bool ret = false;
			switch ( key )
			{
				case "Size":
					Resize( (AxisAlignedBox)val );
					ret = true;
					break;
				case "Depth":
					maxDepth = (int)val;
					Resize( this.octree.Box );
					ret = true;
					break;
				case "ShowOctree":
					this.ShowBoundingBoxes = (bool)val;
					ret = true;
					break;
				case "CullCamera":
					cullCamera = (bool)val;
					ret = true;
					break;
			}

			return ret;
		}