프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ContentSizeChanged | ContentSizeChangedDelegate | ||
CurrentHeight | int | ||
CurrentWidth | int | ||
JSConsole | JSConsoleDelegate | ||
JSMessageReceived | JSMessageReceivedDelegate | ||
LoadFinished | LoadFinishedDelegate | ||
LoadProgress | LoadProgressDelegate | ||
MaxHeight | int | ||
MaxWidth | int | ||
NewViewRequested | RequestNewViewDelegate | ||
ScrollSensitivity | float | ||
TitleChanged | TitleChangedDelegate | ||
URL | string | ||
URLChanged | URLChangedDelegate |
메소드 | 설명 | |
---|---|---|
AddToGameObject ( GameObject gameObject, string url = "", int maxWidth = 1024, int maxHeight = 1024 ) : UWKWebView, |
Dynamically adds a UWKWebView component to a GameObject with initialization that isn't possible using GameObject.AddComponent due to lack of constructor parameters
|
|
Awake ( ) : void |
Initializes the UWKWebView, registers default delagates, and creates textures for the page and icon to lack of constructor parameters
|
|
Back ( ) : void |
Moves back in the page history
|
|
ClearCookies ( ) : void |
Clears all user cookies
|
|
CloseInspector ( ) : void |
Closes the Web Inspector window Associated with this View
|
|
DisableInput ( ) : void |
Globally enables mouse and keyboard input from webviews
|
|
DrawTextIME ( int x, int y ) : void |
Draws the text IME for Chinese, Japanese, Korean languages
|
|
DrawTexture ( Rect position, bool alphaBlend = true ) : void | ||
EnableInput ( ) : void |
Globally disabled mouse and keyboard input from webviews
|
|
EvaluateJavascript ( string javascript, JSEvalDelegate callback = null ) : void |
Evaluates Javascript on the page Example with return value: EvaluateJavascript("document.title", (value) => { Debug.Log(value); });
|
|
Forward ( ) : void |
Moves forward in the page history
|
|
GetApplicationDataURL ( ) : string | ||
Hide ( ) : void |
Hide the page, the page will no longer be rendered by the web rendering process saving CPU time
|
|
IMEFocusIn ( UWKMessage, &msg ) : void |
Page is focusing a text entry area in IME mode
|
|
IMEFocusOut ( ) : void |
Page is removing focus for text area in IME mode
|
|
IconChanged ( int width, int height, byte bytes ) : void |
Sets the icon texture to the given width/height and image bytes
|
|
LoadHTML ( string HTML, string baseURL = "" ) : void |
Loads the specified HTML string directly in the view, can be used for generating web content on the fly
|
|
LoadURL ( string url ) : void |
Navigate the view to the specified URL (http://, file://, etc)
|
|
Navigate ( Navigation, n ) : void |
Navigates forward or back in the page history
|
|
OnDestroy ( ) : void | ||
ProcessKeyboard ( Event keyEvent ) : void |
Process a Unity keyboard event
|
|
ProcessMouse ( Vector3 mousePos ) : void |
Process the mouse given mousePos coordinates
|
|
Reload ( ) : void |
Reloads the current page contents
|
|
SendJSMessage ( string msgName ) : void |
Sends a Javascript message to the page
|
|
SendJSMessage ( string msgName, object>.Dictionary |
Sends a Javascript message to the page
|
|
SendJSMessage ( string msgName, object value ) : void |
Sends a Javascript message to the page
|
|
SendJSMessage ( string msgName, string key, object value ) : void |
Sends a Javascript message to the page
|
|
SetAlphaMask ( bool enabled ) : void |
Enabled or disables alpha mask rendering of view
|
|
SetCurrentSize ( int width, int height ) : void |
Sets the current width and height of the UWKWebView
|
|
SetFrameRate ( int framerate ) : void |
Sets the framerate that the view is rendered at in the web rendering process Default is 30fps, to set 60fps you would call view.SetFrameRate(60); Please note that higher fps settings will increase CPU load
|
|
SetScrollPosition ( int x, int y ) : void |
Sets the page's sceoll positon
|
|
SetTextCaretColor ( uint color ) : void |
Sets the color of the text input caret in the form of 0xAARRGGBB Default is opaque black 0xFF000000
|
|
SetUserAgent ( string agent = "" ) : void |
Sets the user agent the browser reports, setting the agent to "" will use the default uWebKit agent
|
|
SetZoomFactor ( float zoom ) : void |
Sets the zoom factor of the page
|
|
Show ( ) : void |
Makes the page visible, the page will be updated and refreshed by the Wweb rendering process
|
|
ShowInspector ( ) : void |
Opens a platform Web Inspector Window
|
|
Start ( ) : void | ||
Stop ( ) : void |
Stops the current page load
|
|
Update ( ) : void | ||
Visible ( ) : bool |
Gets whether the page is visible or not
|
|
contentSizeChanged ( UWKWebView, view, int width, int height ) : void | ||
jsConsole ( UWKWebView, view, string message, int line, string source ) : void | ||
jsMessageReceived ( UWKWebView, view, string message, string json, object>.Dictionary |
||
loadFinished ( UWKWebView, view ) : void | ||
loadProgress ( UWKWebView, view, int progress ) : void | ||
newViewRequested ( UWKWebView, view, string url ) : void | ||
titleChanged ( UWKWebView, view, string title ) : void | ||
urlChanged ( UWKWebView, view, string url ) : void |
public static AddToGameObject ( GameObject gameObject, string url = "", int maxWidth = 1024, int maxHeight = 1024 ) : UWKWebView, | ||
gameObject | GameObject | |
url | string | |
maxWidth | int | |
maxHeight | int | |
리턴 | UWKWebView, |
public DrawTexture ( Rect position, bool alphaBlend = true ) : void | ||
position | Rect | |
alphaBlend | bool | |
리턴 | void |
public EvaluateJavascript ( string javascript, JSEvalDelegate callback = null ) : void | ||
javascript | string | |
callback | JSEvalDelegate | |
리턴 | void |
public IconChanged ( int width, int height, byte bytes ) : void | ||
width | int | |
height | int | |
bytes | byte | |
리턴 | void |
public LoadHTML ( string HTML, string baseURL = "" ) : void | ||
HTML | string | |
baseURL | string | |
리턴 | void |
public SendJSMessage ( string msgName, object>.Dictionary |
||
msgName | string | |
msgValues | object>.Dictionary | |
리턴 | void |
public SendJSMessage ( string msgName, object value ) : void | ||
msgName | string | |
value | object | |
리턴 | void |
public SendJSMessage ( string msgName, string key, object value ) : void | ||
msgName | string | |
key | string | |
value | object | |
리턴 | void |
public SetCurrentSize ( int width, int height ) : void | ||
width | int | |
height | int | |
리턴 | void |
public contentSizeChanged ( UWKWebView, view, int width, int height ) : void | ||
view | UWKWebView, | |
width | int | |
height | int | |
리턴 | void |
public jsConsole ( UWKWebView, view, string message, int line, string source ) : void | ||
view | UWKWebView, | |
message | string | |
line | int | |
source | string | |
리턴 | void |
public jsMessageReceived ( UWKWebView, view, string message, string json, object>.Dictionary |
||
view | UWKWebView, | |
message | string | |
json | string | |
values | object>.Dictionary | |
리턴 | void |
public loadProgress ( UWKWebView, view, int progress ) : void | ||
view | UWKWebView, | |
progress | int | |
리턴 | void |
public newViewRequested ( UWKWebView, view, string url ) : void | ||
view | UWKWebView, | |
url | string | |
리턴 | void |
public titleChanged ( UWKWebView, view, string title ) : void | ||
view | UWKWebView, | |
title | string | |
리턴 | void |
public urlChanged ( UWKWebView, view, string url ) : void | ||
view | UWKWebView, | |
url | string | |
리턴 | void |
public ContentSizeChangedDelegate ContentSizeChanged | ||
리턴 | ContentSizeChangedDelegate |
public JSMessageReceivedDelegate JSMessageReceived | ||
리턴 | JSMessageReceivedDelegate |
public RequestNewViewDelegate NewViewRequested | ||
리턴 | RequestNewViewDelegate |