Skip to content

revkae/xr-education-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 

Repository files navigation

๐ŸŽ“ XR Education Editor

dunya

Unity C# Google Cardboard PlayFab Azure

A Unity-based XR/VR educational platform that enables students to create interactive 3D experiences through visual block-based programming in virtual reality.

๐Ÿ”„ Note: I am continuing the development of this project, building upon the foundation laid by previous developers.


๐Ÿ“– Overview

XR Education Editor combines the accessibility of visual programming with immersive VR experiences. Students can build interactive 3D worlds using a drag-and-drop block coding interface (similar to Scratch), then experience their creations in VR using Google Cardboard.

blockcode


โœจ Features

Feature Description
๐Ÿงฉ Visual Block Programming Intuitive drag-and-drop coding with BlocksEngine2
๐Ÿฅฝ VR Experience View and interact with creations in Google Cardboard VR
โ˜๏ธ Cloud Save Projects automatically sync via PlayFab backend
๐ŸŒ Cross-Platform Supports Android (VR) and WebGL (Desktop)
๐Ÿ‘๏ธ Gaze Interaction Look at objects to trigger block code in VR
๐Ÿ”— World Sharing Share creations with others via Azure Blob Storage

๐Ÿ“ธ Screenshots

giris world dusun


๐Ÿ› ๏ธ Tech Stack

Unity C#

Technology Purpose
Unity 2022.3.62f2 Game engine (LTS)
Google Cardboard XR VR support
BlocksEngine2 v2.12.1 Visual programming
PlayFab SDK Authentication & cloud data
Azure Blob Storage Screenshots & shared worlds
Unity Addressables Dynamic asset loading
Universal Render Pipeline Rendering

๐ŸŽฎ How It Works

๐Ÿงฉ Block Programming

Students create logic using visual blocks:

Block Type Examples
Event Blocks "When Play Clicked", "When Looked At"
Motion Blocks Move forward, turn, rotate
Control Blocks Loops, conditionals, delays

๐Ÿ‘๏ธ VR Gaze Interaction

In VR mode, looking at objects can trigger their block code:

  1. Reticle follows gaze direction
  2. Reticle expands when hovering interactive objects
  3. Gaze triggers "When Looked At" blocks
  4. Cardboard button triggers click events

โ˜๏ธ Cloud Sync

All world data automatically syncs to PlayFab:

  • World metadata and settings
  • Object positions, rotations, scales
  • Block code (serialized as XML)
  • Spawn point locations

๐Ÿ“ฑ Platform Support

Platform Mode Controls
Android VR Experience Gyroscope, Cardboard button
WebGL Desktop Mouse, full UI canvas

๐Ÿ“š Usage Guide

Creating a World

  1. Log in or create an account
  2. Click "Create New World"
  3. Name your world and enter

Adding Objects

  1. Open the object library
  2. Drag objects into the scene
  3. Use transform handles to position

Programming Objects

  1. Select an object
  2. Click "Code Blocks" in properties
  3. Drag blocks to create logic
  4. Click Save

Entering VR

  1. Click the VR button
  2. Place phone in Cardboard headset
  3. Look around to explore
  4. Gaze at objects to interact

๐Ÿ™ Acknowledgments


Built for education, powered by imagination. ๐ŸŽ“โœจ

About

XR playground for teachers to teach children programming using code blocks with visual elements

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors