Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/u618194375/public_html/config.php on line 15

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/u618194375/public_html/config.php on line 16

Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in /home/u618194375/public_html/config.php on line 18

Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/u618194375/public_html/blocks/online.php on line 3

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/u618194375/public_html/blocks/online.php on line 3

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u618194375/public_html/blocks/online.php on line 9

Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/u618194375/public_html/blocks/online.php on line 16

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/u618194375/public_html/blocks/online.php on line 16

Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/u618194375/public_html/blocks/online.php on line 19

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/u618194375/public_html/blocks/online.php on line 19
Unity forge
WWW.error Manual     Reference     Scripting  
Scripting > Runtime Classes > WWW
WWW.error
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • WWW
  • All Members
  • Variables
  • assetBundle
  • bytes
  • error
  • isDone
  • movie
  • oggVorbis
  • progress
  • text
  • texture
  • threadPriority
  • uploadProgress
  • url
  • Constructors
  • WWW
  • Functions
  • GetAudioClip
  • LoadImageIntoTexture
  • LoadUnityWeb
  • Class Functions
  • EscapeURL
  • LoadFromCacheOrDownload
  • UnEscapeURL

var error : string

Description

Returns an error message if there was an error during the download (Read Only).

If there was no error, error will return null.

If the object has not finished downloading the data, it will block until the download has finished. Use isDone or yield to see if the data is available.

JavaScripts
// Get a texture with an invalid url
var url = "invalid_url";
function Start () {
// Start a download of the given URL
var www : WWW = new WWW (url);

// Wait for download to complete
yield www;

// Print the error to the console
if (www.error != null)
Debug.Log(www.error);

// assign texture
renderer.material.mainTexture = www.texture;
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public string url = "invalid_url";
IEnumerator Start() {
WWW www = new WWW(url);
yield return www;
if (www.error != null)
Debug.Log(www.error);

renderer.material.mainTexture = www.texture;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public url as string = 'invalid_url'

def Start() as IEnumerator:
www as WWW = WWW(url)
yield www
if www.error != null:
Debug.Log(www.error)
renderer.material.mainTexture = www.texture


Unity3d Рекламный блок Unity3d



Установить Adobe Flash плеер

Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/u618194375/public_html/Documentation/blocks/footer.php on line 2
Ruslan Slobodianiuk © unity3dforge.com все права защищены

Полезные ресурсы:

Программа для создания скриншотов // //]]>