recommended reading
Hello everyone, I am a Buddhist engineer ☆Tranquil Little Demon Dragon☆ . I update Unity development skills from time to time. If you think it is useful, remember to click three times.
I. Introduction
It’s been a long time since I introduced a plug-in, and today I’m going to share a useful embedded browser plug-in.
A web page can be rendered on Unity's UGUI and can be interacted with.
Builds are fast and responsive.
Renderings:
Second, the use of plug-ins
2-1. Introduction
Embedded Browser is a plug-in for Unity web page rendering developed by the Zen Fulcrum LLC team. The company has also developed other useful plug-ins
.
2-2. Function
(1) It can render the webpage to the UI
(2) It supports CSS, HTML and JavaScript
(3) It can be used for communication between Unity and JavaScript
(4) It can control the webpage forward, backward, reload, control the zoom size, etc.
( 5) Support Video, support SVG
(6) Custom mouse style
(7) Can edit and delete Cookit
(8) Support VR, such as HTC VIVE
2-3. Supported platforms
(1) Windows 32-bit operating system
(2) Windows 64-bit operating system
(3) OS X 64-bit operating system
(4) Linux 64-bit operating system
2-4. Unsupported platforms
(1) Android Android system, including Oculus Quest VR all-in-one machine
(2) iOS Apple system
(3) UWP, including HoloLens
2-5. Download link
CSDN has resources, but points are needed, you can search and download by yourself, or go to button skirt (398291828) to download the file.
2-6. Tutorial
(1) After opening the scene, in the Hierarchy view, select the plus sign, UI→RawImage, and then set to fill the screen:
(2) Add Browser.cs, Pointe UIGUI.cs, Cursor Renderer OS.cs components:
Components that control web browsing:
Attributes | introduce |
---|---|
Url | The link to visit. |
Width/Height | The width and height of the web page, this setting is basically useless, it is rendered according to the size of the RawImage. |
Generate Mipmap | generate textures |
Base Color | basic color |
Zoom | scaling ratio |
Allow Contetnt Menu On | Allow context menu to open |
New Window Action | new window action |
Components that control web page rendering:
Attributes | introduce |
---|---|
Drag Movement Threshold | Drag to move the threshold |
View Camera | watch camera |
Enable Mouse Input | control mouse input |
Enable Touch Input controls touch input | |
Enable FPS Input | Control FPS input |
Enable VR Input | Control VR input |
Max Distance | maximum distance |
Enable Input | control input |
Automatic Resize | auto resize |
Components that control mouse style changes:
Attributes | introduce |
---|---|
Cursor Normally Visible | Whether the mouse cursor is visible |
(3) Run the program to see the effect:
3. Postscript
If you find this article useful, don’t forget to follow it, follow it so you don’t get lost, and continue to share more Unity dry goods articles.
Your likes are your support for bloggers, please leave a message if you have any questions:
The blogger's homepage has contact information.
The blogger also has many treasured articles waiting for your discovery:
column | direction | Introduction |
---|---|---|
Unity3D development small game | Small Game Development Tutorial | Share some small games developed using the Unity3D engine, and share some tutorials for making small games. |
Unity3D from entry to advanced | getting Started | Get inspiration from self-study Unity, summarize the route of learning Unity from scratch, and have knowledge of C# and Unity. |
UGUI for Unity3D | UGUI | A full analysis of Unity's UI system UGUI, starting from the basic controls of UGUI, and then comprehensively teaching the principles of UGUI and the use of UGUI. |
Reading data of Unity3D | file read | Use Unity3D to read txt files, json files, xml files, csv files, and Excel files. |
Data collection of Unity3D | data set | Array collection: Knowledge sharing of data collections such as arrays, lists, dictionaries, stacks, and linked lists. |
VR/AR (Virtual Simulation) Development of Unity3D | virtual reality | Summarize the common virtual simulation needs of bloggers and give case explanations. |
Plugin for Unity3D | plug-in | Mainly share some plug-in usage methods used in Unity development, plug-in introduction, etc. |
Daily development of Unity3D | daily record | It is mainly used by bloggers in daily development, methods and skills used, development ideas, code sharing, etc. |
Daily BUG of Unity3D | daily record | Record the bugs and pitfalls encountered during the development of the project using the Unity3D editor, so that later generations can have some reference. |