|
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
|
||||||||||||||||
|
||||||||||||||||
WWW.error
var error : stringDescriptionReturns 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 |
|
|||||||||||||||
|
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 все права защищены
|
||||||||||||||||
Полезные ресурсы:
Программа для создания скриншотов // //]]>