public Vector4 GetCustomParameter( int index ) { if ( this.customParams[ index ] == null ) { throw new Exception( "A parameter was not found at the given index" ); } else { return (Vector4)this.customParams[ index ]; } }