Skip to content

Enabling JS Upload Feature in SDK 13.7 (Paid Plans Only, SDK 13.7 and Later)

Purpose

By uploading JavaScript (aka JS), you can execute JS in your world.

You can implement various gimmicks using JS in Vket Cloud, such as "browser games," "3D websites," and "online events."

JS is a programming language that is commonly used in the development of web browser-based applications. JS is often used in combination with HTML and CSS, making it easy for beginners to start developing on the web browser. JS is also characterized by its rich library support.

With this feature, Vket Cloud developers can achieve the following:

  • Implementation of Game World Save Functionality: Implement a full-fledged online game with server synchronization and game world save functionality.

  • Weather Animation in the World Using Public Weather APIs: Change the weather animation in the world using publicly available weather APIs.

  • Operation of a Membership-based Web Metaverse Space Linked to Your Own Database: Operate a membership-based web metaverse space linked to your own database.

Sample JS Upload World

We have prepared a sample world for uploading JS. By uploading the sample JS, you can display the state of the keyboard (pressed/released) as text in the world.

For more information, refer to Introducing Sample JS Upload.

Prerequisites

JS Submission Procedure

  1. Right-click in the Project Window and create the File Deployment Config item.

Create File Deployment Config

  1. Access Base Setting and change File Deployment Mode to Custom. Then, create the file in your Asset by clicking the Create File Deployment Config button.

Set File Deployment Mode

  1. Set the JavaScript you want to include in the target File Deployment Config.

Sample JS: vkc_sample.js

Set JavaScript

(Note: When specifying multiple files, the loading order during Build and run follows the order of this setting. However, in the Vket Cloud production environment, the files will be loaded in alphabetical order. To control the loading order, for example, you can prefix file names with a letter like "z" for files that you want to be loaded later.)

  1. Set the target Scriptable Object in the Base Setting's File Deployment Config.

Set Scriptable Object Set Scriptable Object

  1. Finally, perform Build And Run or Upload.

This completes the procedure for setting up the JS upload feature in SDK 13.7.