├── SpawnDev.BlazorJS.BabylonJS6.Demo ├── Pages │ ├── Index.razor │ └── Index.razor.cs ├── MainLayout.razor ├── wwwroot │ ├── icon-512.png │ ├── assets │ │ └── Robot.glb │ ├── service-worker.js │ ├── manifest.webmanifest │ ├── index.html │ ├── css │ │ └── app.css │ └── service-worker.published.js ├── _Imports.razor ├── App.razor ├── Program.cs ├── SpawnDev.BlazorJS.BabylonJS6.Demo.csproj └── Properties │ └── launchSettings.json ├── SpawnDev.BlazorJS.BabylonJS6 ├── _Imports.razor ├── IParticleSystem.cs ├── AudioEngineOptions.cs ├── Vector2Like.cs ├── Mesh.cs ├── Node.cs ├── Geometry.cs ├── EventState.cs ├── Skeleton.cs ├── Vector3Like.cs ├── BABYLON.cs ├── AnimationGroup.cs ├── BaseTexture.cs ├── TextureDome.cs ├── ThinTexture.cs ├── AbstractMesh.cs ├── Vector2WithInfo.cs ├── BaseParticleSystem.cs ├── ParticleSystem.cs ├── RenderTargetTexture.cs ├── GUI │ ├── AddHeaderOptions.cs │ ├── Image.cs │ ├── StackPanel.cs │ ├── Button.cs │ ├── Grid.cs │ ├── TextBlock.cs │ ├── Checkbox.cs │ ├── RadioButton.cs │ ├── BaseSlider.cs │ ├── Container.cs │ ├── Rectangle.cs │ ├── Slider.cs │ └── Control.cs ├── Light.cs ├── ShadowLight.cs ├── Size.cs ├── AbstractScene.cs ├── DebugLayer.cs ├── PointLight.cs ├── TargetCamera.cs ├── TransformNode.cs ├── HemisphericLight.cs ├── VideoTextureSettings.cs ├── Vector4.cs ├── Observable.cs ├── VideoTexture.cs ├── Vector2.cs ├── MeshBuilder.cs ├── CreateGroundOptions.cs ├── Vector3.cs ├── JSDisposable.cs ├── EngineOptions.cs ├── Camera.cs ├── ThinEngine.cs ├── FreeCamera.cs ├── SpawnDev.BlazorJS.BabylonJS6.csproj ├── CreateSphereOptions.cs ├── ThinEngineOptions.cs ├── Texture.cs ├── Engine.cs ├── Scene.cs ├── Effect.cs ├── BabylonJS6Loader.cs ├── SceneLoader.cs └── wwwroot │ ├── babylonjs.postProcess.min.js │ └── babylonjs.proceduralTextures.min.js ├── README.md ├── LICENSE.txt ├── SpawnDev.BlazorJS.BabylonJS6.sln ├── .github └── workflows │ └── main.yml ├── .gitattributes └── .gitignore /SpawnDev.BlazorJS.BabylonJS6.Demo/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 | 4 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 |
4 | @Body 5 |
6 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.BabylonJS6/main/SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/icon-512.png -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/assets/Robot.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LostBeard/SpawnDev.BlazorJS.BabylonJS6/main/SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/assets/Robot.glb -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Components.Web 2 | @using Microsoft.JSInterop 3 | @using SpawnDev.BlazorJS 4 | @using SpawnDev.BlazorJS.JSObjects 5 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/IParticleSystem.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public interface IParticleSystem : IJSObject 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/AudioEngineOptions.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public class AudioEngineOptions 6 | { 7 | // TODO 8 | } 9 | } 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Vector2Like.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public class Vector2Like 6 | { 7 | public double X { get; set; } 8 | public double Y { get; set; } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.AspNetCore.Components.Web 5 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 6 | @using Microsoft.JSInterop 7 | @using SpawnDev.BlazorJS.BabylonJS6.Demo 8 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/service-worker.js: -------------------------------------------------------------------------------- 1 | // In development, always fetch from the network and do not enable offline support. 2 | // This is because caching would make development more difficult (changes would not 3 | // be reflected on the first load after each change). 4 | self.addEventListener('fetch', () => { }); 5 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Mesh.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class Mesh : AbstractMesh 8 | { 9 | public Mesh(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Node.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class Node : JSDisposable 8 | { 9 | public Node(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Geometry.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class Geometry : JSObject 8 | { 9 | public Geometry(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/EventState.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class EventState : JSObject 8 | { 9 | public EventState(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Skeleton.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class Skeleton : JSDisposable 8 | { 9 | public Skeleton(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Vector3Like.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public class Vector3Like 6 | { 7 | public double X { get; set; } 8 | public double Y { get; set; } 9 | public double Z { get; set; } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/BABYLON.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace SpawnDev.BlazorJS.BabylonJS6 8 | { 9 | public static partial class BABYLON 10 | { 11 | internal static BlazorJSRuntime JS => BlazorJSRuntime.JS; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/AnimationGroup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class AnimationGroup : JSDisposable 8 | { 9 | public AnimationGroup(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/BaseTexture.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class BaseTexture : ThinTexture 8 | { 9 | public BaseTexture(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/TextureDome.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class TextureDome : TransformNode 8 | { 9 | public TextureDome(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/ThinTexture.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class ThinTexture : JSDisposable 8 | { 9 | public ThinTexture(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/AbstractMesh.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class AbstractMesh : TransformNode 8 | { 9 | public AbstractMesh(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Vector2WithInfo.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class Vector2WithInfo : Vector2 8 | { 9 | public Vector2WithInfo(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/BaseParticleSystem.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class BaseParticleSystem : JSObject 8 | { 9 | public BaseParticleSystem(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/ParticleSystem.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class ParticleSystem : BaseParticleSystem, IParticleSystem 8 | { 9 | public ParticleSystem(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/RenderTargetTexture.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class RenderTargetTexture : JSObject 8 | { 9 | public RenderTargetTexture(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/GUI/AddHeaderOptions.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public static partial class GUI 6 | { 7 | public class AddHeaderOptions 8 | { 9 | public bool IsHorizontal { get; set; } 10 | public bool ControlFirst { get; set; } 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Light.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class Light : Node 8 | { 9 | public Light(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | public float Intensity { get => JSRef.Get("intensity"); set => JSRef.Set("intensity", value); } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/ShadowLight.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class ShadowLight : Light 8 | { 9 | public ShadowLight(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | public Vector3 Position { get => JSRef.Get("position"); set => JSRef.Set("position", value); } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/Size.cs: -------------------------------------------------------------------------------- 1 | namespace SpawnDev.BlazorJS.BabylonJS6 2 | { 3 | public static partial class BABYLON 4 | { 5 | public class Size 6 | { 7 | public int Width { get; set; } = 0; 8 | public int Height { get; set; } = 0; 9 | public Size(int width, int height) 10 | { 11 | Width = width; 12 | Height = height; 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/AbstractScene.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | using SpawnDev.BlazorJS.JSObjects; 3 | 4 | namespace SpawnDev.BlazorJS.BabylonJS6 5 | { 6 | public static partial class BABYLON 7 | { 8 | public partial class AbstractScene : JSObject 9 | { 10 | public AbstractScene(IJSInProcessObjectReference _ref) : base(_ref) { } 11 | public Array Meshes => JSRef.Get>("meshes"); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/manifest.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SpawnDev.BlazorJS.BabylonJS6.Demo", 3 | "short_name": "SpawnDev.BlazorJS.BabylonJS6.Demo", 4 | "id": "./", 5 | "start_url": "./", 6 | "display": "standalone", 7 | "background_color": "#ffffff", 8 | "theme_color": "#03173d", 9 | "prefer_related_applications": false, 10 | "icons": [ 11 | { 12 | "src": "icon-512.png", 13 | "type": "image/png", 14 | "sizes": "512x512" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Not found 8 | 9 |

Sorry, there's nothing at this address.

10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/DebugLayer.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class DebugLayer : JSObject 8 | { 9 | public DebugLayer(IJSInProcessObjectReference _ref) : base(_ref) 10 | { 11 | } 12 | public DebugLayer(Scene scene) : base(JS.New("BABYLON.DebugLayer", scene)) { } 13 | public void Hide() => JSRef.CallVoid("hide"); 14 | public void Show() => JSRef.CallVoid("show"); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/PointLight.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public class PointLight : ShadowLight 8 | { 9 | public PointLight(IJSInProcessObjectReference _ref) : base(_ref) { } 10 | public PointLight(string name, Vector3 position, Scene scene) : base(JS.New("BABYLON.PointLight", name, position, scene)) { } 11 | public PointLight(string name, Vector3 position) : base(JS.New("BABYLON.PointLight", name, position)) { } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/GUI/Image.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public static partial class GUI 8 | { 9 | // https://doc.babylonjs.com/typedoc/classes/BABYLON.GUI.Image 10 | public partial class Image : Control 11 | { 12 | public Image(IJSInProcessObjectReference _ref) : base(_ref) { } 13 | public Image(string name, string url) : base(JS.New("BABYLON.GUI.Image", name, url)) { } 14 | 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/TargetCamera.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | // https://doc.babylonjs.com/typedoc/classes/BABYLON.TargetCamera 8 | public partial class TargetCamera : Camera 9 | { 10 | public TargetCamera(IJSInProcessObjectReference _ref) : base(_ref) { } 11 | public void SetTarget(Vector3 target) => JSRef.CallVoid("setTarget", target); 12 | public Vector3 Target { get => JSRef.Get("target"); set => JSRef.Set("target", value); } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/GUI/StackPanel.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public static partial class GUI 8 | { 9 | public partial class StackPanel : Container 10 | { 11 | public StackPanel(IJSInProcessObjectReference _ref) : base(_ref) { } 12 | public StackPanel(string name = "") : base(JS.New("BABYLON.GUI.StackPanel", name)) { } 13 | 14 | public bool IsVertical { get => JSRef.Get("isVertical"); set => JSRef.Set("isVertical", value); } 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/TransformNode.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public partial class TransformNode : Node 8 | { 9 | public static implicit operator Vector3(TransformNode node) => node.Position; 10 | public TransformNode(IJSInProcessObjectReference _ref) : base(_ref) { } 11 | public Vector3 Position { get => JSRef.Get("position"); set => JSRef.Set("position", value); } 12 | public Vector3 Scaling { get => JSRef.Get("scaling"); set => JSRef.Set("scaling", value); } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/HemisphericLight.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | 8 | // https://doc.babylonjs.com/typedoc/classes/BABYLON.HemisphericLight 9 | public class HemisphericLight : Light 10 | { 11 | public HemisphericLight(IJSInProcessObjectReference _ref) : base(_ref) { } 12 | public HemisphericLight(string name, Vector3 position, Scene scene) : base(JS.New("BABYLON.HemisphericLight", name, position, scene)) { } 13 | public HemisphericLight(string name, Vector3 position) : base(JS.New("BABYLON.HemisphericLight", name, position)) { } 14 | public double Intensity { get => JSRef.Get("intensity"); set => JSRef.Set("intensity", value); } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6.Demo/wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | SpawnDev.BlazorJS.BabylonJS6.Demo 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 |
Loading...
17 | 18 |
19 | An unhandled error has occurred. 20 | Reload 21 | 🗙 22 |
23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SpawnDev.BlazorJS.BabylonJS6/GUI/Button.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace SpawnDev.BlazorJS.BabylonJS6 4 | { 5 | public static partial class BABYLON 6 | { 7 | public static partial class GUI 8 | { 9 | public partial class Button : Rectangle 10 | { 11 | public Button(IJSInProcessObjectReference _ref) : base(_ref) { } 12 | public Button(string name, string url) : base(JS.New("BABYLON.GUI.Button", name, url)) { } 13 | public static Button CreateImageOnlyButton(string name, string imageUrl) => JS.Call