Assets/WebGLSupport/WebGLInput/WebGLInput.cs
/// <summary>
/// Get the element rect of input
/// </summary>
/// <returns></returns>
Get the element rect of input
Get the element rect of input
RectInt GetElemetRect()
        {
            var rect = GetScreenCoordinates(input.RectTransform());
            if (showHtmlElement || Application.isMobilePlatform)
            {
                var x = (int)(rect.x);
                var y = (int)(Screen.height - (rect.y + rect.height));
                return new RectInt(x, y, (int)rect.width, (int)rect.height);
            }
            else
            {
                var x = (int)(rect.x);
                var y = (int)(Screen.height - (rect.y));
                return new RectInt(x, y, (int)rect.width, (int)1);
            }
        }
RectInt GetElemetRect ( ) { var rect = GetScreenCoordinates ( input . RectTransform ( ) ) ; if ( showHtmlElement || Application . isMobilePlatform ) { var x = ( int ) ( rect . x ) ; var y = ( int ) ( Screen . height - ( rect . y + rect . height ) ) ; return new RectInt ( x , y , ( int ) rect . width , ( int ) rect . height ) ; } else { var x = ( int ) ( rect . x ) ; var y = ( int ) ( Screen . height - ( rect . y ) ) ; return new RectInt ( x , y , ( int ) rect . width , ( int ) 1 ) ; } }
Get the element rect of input
Get the element rect of input
// モバイルの場合、強制表示する

None