Overview
Users who have installed the FVS Large Screen Editing Mode plugin can refer to this article to learn about the related functions of the FVS template.
Note: Mobile terminals are not supported.
version
Report Server Version | Plugin Version | Function Changes |
11.0.6 | V1.6.0 | 3D components Add Unity components, support uploading Unity resources, and achieve richer 3D effects |
11.0.8 | V1.8.2 | Unity components support Unity multi-scene resources, please refer to section 4.2.2 for details |
Application scenarios
Unity is a real-time 3D development platform. In order to allow users to experience richer 3D effects, the Unity component developed by FVS in conjunction with Unity supports importing, editing, saving and previewing Unity resources.
It can expand the 3D product functions of FVS, and at the same time, it can well integrate the existing FVS design, such as supporting Unity to use FVS data sources, and custom interaction events (linkage, jump, parameter passing), etc.
Note: The Unity version requires 2021.3 and later versions.
Unity resource preparation
Before using the Unity component, you need to complete the development of the 3D scene function in Unity, then export the webgl resource package, and then upload the resource package in FVS.
Note 1: The relevant configuration of the Unity scene in FVS is determined by the resource itself, and the relevant configuration of the scene, data, and style will be automatically generated. FVS only supports modification after parsing the configuration file.
Note 2: When developing Unity scenes, it needs to be based on FVS-Unity-SDK. For details, please refer to: FVS-Unity-SDK help documentation .
This article provides two sample Unity resource tarballs:
The file is small (5M), and the resources are relatively simple: Build1.zip
The file is large (76M), and the resources are cool: Pavilion Unity Resources.zip
The file is large (122M), multi-scene resources, suitable for V1.8.2 and later plug-ins: multi-scene Unity resources.zip
No need to decompress after clicking download.
Add Unity components
Click "File > New Large Screen Template" in the upper left corner of the designer to modify the template name and canvas size. As shown below:
Click "3D Component>Unity" in the component area to add the component to the canvas, and click "Content > Edit Component" in the configuration area on the right to enter the Unity scene editing interface.
Unity editing interface
Upload Unity resources
When you enter the Unity component editing interface for the first time, you will be prompted to upload Unity resources first, and then configure them.
Click "Upload Unity Resources", here is the second chapter "Exhibition Hall Unity Resources.zip", and wait for a while to load the Unity scene.
As shown below:
Scene configuration
After the Unity resource is parsed, the "Scene" panel exists by default, and it always includes the functions of "Refresh Unity Configuration" and "Replace Unity".
If there are scene-related configurations in the resource, the corresponding configuration items will appear in the scene panel.
Refresh the Unity configuration
After clicking "Refresh Unity Configuration", the configuration modifications made in FVS will be restored to the configuration of the original resource, excluding the bound data and adjusted perspective.
Unity multi-scene switching
Within Unity, multiple scenes can be created and packaged into a Unity resource, where each scene has independent data, style or event settings.
In V1.8.2 and later versions of the plug-in, if the imported resource contains multiple scenes, the FVS Unity component can recognize multiple scenes and support switching scenes. After switching scenes, the configuration panel will be refreshed to the configuration panel of the current scene.
As shown below:
Replace Unity
Click "Replace Unity" and select other Unity resource compression package to replace the current Unity resource.
When replacing a resource, Unity will parse the configuration file of the new resource and display the configuration items according to the new resource.
Data configuration
When FVS parses Unity resources, it will analyze its data configuration related information and automatically generate data layers and field names.
It does not support creating or deleting data layers in FVS, but supports setting data sources and binding data in FVS.
Taking the "Exhibition Hall Unity Resources.zip" uploaded in Section 4.1 as an example, its data configuration panel is shown in the figure below:
Note: When creating a dataset in FVS, it is important to note that the model name is determined by the Unity resource. For example, the "venue name" field needs to be consistent with the model name in the Unity resource.
Note: If the Unity resource contains style attribute settings, the "Style" configuration panel will also be automatically generated.
Interaction events supported by Unity components
1) The Unity component supports six types of click events through the FVS component interaction properties to realize linkage, jump, and other interactive behaviors with other components.
Take the "Pavilion Unity Resources.zip" uploaded in Section 4.1 as an example. When adding a click event to a component, there are two event objects that can be selected: venue click and camera click.
After selecting the event object, select the event type to set.
Note: The event object here does not need to configure the data layer, but only depends on the settings of the Unity resource.
2) If the Unity resource contains configurable animation, it also supports other components to trigger the animation effect of the Unity component through the "3D component animation" click event.