Posted on

Web View – Cross Platform Native Plugins: Essential Kit

Download

Documentation: https://assetstore.essentialkit.voxelbusters.com/

0:00 Welcome to Web View Cross Platform Native Plugins: Essential Kit
0:23 Overview
1:20 Setup
1:57 Usage

The Web View service makes it so you can display a web page through a window in your game. This can be used in several different ways such as having a web login screen or display your terms and conditions.

IG_Webview.cs

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VoxelBusters.CoreLibrary;
using VoxelBusters.EssentialKit;

public class IG_Webview : MonoBehaviour
{
    public static IG_Webview instance;

    WebView CurrentWebView;

    private void OnEnable()
    {
        // register for events
        WebView.OnShow += OnWebViewShow;
        WebView.OnHide += OnWebViewHide; 
        WebView.OnLoadStart += OnWebViewLoadStart; 
        WebView.OnLoadFinish += OnWebViewLoadFinish; 
    }

    

    private void OnDisable()
    {
        // register for events
        WebView.OnShow -= OnWebViewShow;
        WebView.OnHide -= OnWebViewHide; 
        WebView.OnLoadStart -= OnWebViewLoadStart; 
        WebView.OnLoadFinish -= OnWebViewLoadFinish; 
    }
    // Start is called before the first frame update
    void Start()
    {
        instance = this;
    }

    //IG_Webview.instance.NewWebView(webpageURL);
    public void NewWebView(string URL)
    {
        CurrentWebView = WebView.CreateInstance();
        CurrentWebView.SetFullScreen();
        CurrentWebView.LoadURL(URLString.URLWithPath(URL));
        CurrentWebView.Show();
    }

    //IG_Webview.instance.HideCurrentWebview();
    public void HideCurrentWebview()
    {
        CurrentWebView.Hide();
    }


    private void OnWebViewShow(WebView result)
    {
        Debug.Log("Webview is being displayed : " + result);
    }

    private void OnWebViewHide(WebView result)
    {
        Debug.Log("Webview is hidden : " + result);
        
    }

    private void OnWebViewLoadStart(WebView result)
    {
        Debug.Log("Webview is being displayed : " + result);
    }

    private void OnWebViewLoadFinish(WebView result, Error error)
    {
        Debug.Log("Webview is being displayed : " + result);
    }

    
}
Posted on

Multiplayer Marble Game – Collaborative Unity Project

Play Now

Check back every Monday for updates

Welcome to our all-new collaborative project. We tried to do a joint project with our subscribers before. However, the scope of the project was a bit too much. While I will return to that project sometime in the future we have a new project that will be much easier to complete.

There are countless ball games out there on the game markets but nothing like what we want to create. I want to create a multiplayer race game that has a variety of levels created by the players. I want to collaborate with all of you to create something everyone can enjoy.

In order to participate in this project, you will need to become a supporter on our website. As a supporter, you will receive exclusive free access to our Marble Level Builder Packager. This package will help you to create the levels for this game. The package includes basic Platforms that have a simple drag and drop design flow. We have also included moving, ghost, and launch platforms in this package.

Project Rules

  1. InfoGamer will handle the general development of this Game
  2. You must be a supporter to participate in this project
    • This will give you access you our exclusive Marble Level Builder package in addition to all other supporter perks
  3. In order to keep the project manageable, we will limit the Collaboration to level design.
  4. We will Include your display name in the credits of the game.
  5. Have Fun!

How to Participate

Basic Levels

  1. Sign up to become a supporter.
  2. Download our free Marble Level Builder Package.
  3. Import package into an empty Unity Project.
  4. Use platform prefabs to design a unique level.
  5. Export Scenes and any new dependant files you have created as Unity Package.
  6. Upload the Unity Package below.

Advanced Levels

  1. Sign up to become a supporter.
  2. Download our free Marble Level Builder Package.
  3. Import package into an empty Unity Project.
  4. Use platform prefabs to design a unique level.
  5. Use Blender or other 3D modeling software to create and add your own platform prefabs to the scene (Use FBX Files)
  6. Export Scenes and any new dependant files you have created as Unity Package.
  7. Upload the Unity Package below.

Single Platform

  1. Sign up to become a supporter.
  2. Use Blender to create one part, platform, or obstacle for me to add to any level. (Use FBX Files)
  3. Add the part to the empty Unity project and make a prefab out of it.
  4. Export prefab as Unity Package
  5. Upload the Unity Package below.

Development Tips

  • When you Design your levels try to either make a race or a survival game mode.
  • Try to keep the time it takes to complete your levels between 2-5 mins.
  • Have the start of your levels big enough to fit up to 50 balls.
  • Keep the style simple, think geometric.
  • Refrain from making any direct changes to the files included in our Unity Package
  • When submitting your levels, only include the scene files and new files that not include in our Unity Package.
  • Give us a display name that you want to be recognized by in the credits of this game.

Download Package

*This unity package requires using the New Input System.

Additional Videos

Posted on

Network – Cross Platform Native Plugins: Essential Kit

Download

Documentation: https://assetstore.essentialkit.voxelbusters.com/

0:00 Welcome to Network and Web View CPNP2
0:16 Overview
0:36 Setup
1:08 Usage

For this lesson on how to use the Cross Platform Native Plugins in Unity, I will show you how to use the Network and Web View services. The Networking service makes it so you can check to see if the user’s device has a connection to the internet. You are then able to block the user from accessing parts of your game if they don’t have a network connection.

IG_NetworkServices.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VoxelBusters.EssentialKit;

public class IG_NetworkServices : MonoBehaviour
{
    public static IG_NetworkServices instance;

    public bool isInternetActive;
    public bool isHostReachable;
    public bool isNotifierActive;

    private void OnEnable()
    {
        // register for events
        NetworkServices.OnHostReachabilityChange += OnHostReachabilityChange;
        NetworkServices.OnInternetConnectivityChange += OnInternetConnectivityChange;
        NetworkServices.StopNotifier();
    }

    private void OnDisable()
    {
        // unregister from events
        NetworkServices.OnHostReachabilityChange -= OnHostReachabilityChange;
        NetworkServices.OnInternetConnectivityChange -= OnInternetConnectivityChange;
    }

    // Start is called before the first frame update
    void Start()
    {
        instance = this;
    }

    private void OnInternetConnectivityChange(NetworkServicesInternetConnectivityStatusChangeResult result)
    {
        Debug.Log("Received internet connectivity changed event.");
        Debug.Log("Internet connectivity status: " + result.IsConnected);
        isInternetActive = NetworkServices.IsInternetActive;
    }

    private void OnHostReachabilityChange(NetworkServicesHostReachabilityStatusChangeResult result)
    {
        Debug.Log("Received host reachability changed event.");
        Debug.Log("Host reachability status: " + result.IsReachable);
        isHostReachable = NetworkServices.IsHostReachable;
    }

    //IG_NetworkServices.instance.CheckNetwork();
    public void CheckNetwork()
    {
        NetworkServices.StartNotifier();
    }

    //IG_NetworkServices.instance.StopStatus();
    public void StopStatus()
    {
        NetworkServices.StopNotifier();
    }
}