I know this is not the dedicated forum for the Unity Toolkit but I don’t know where else to ask, I’m creating a default type script and Engine component, (Just following the basic tut / documents) but I’m unable to export and run the build the error I get on the web console: BJS -: Unable to load from scenes/CameraTesting.babylon: Error in onSuccess callback
Anyone know what I’m doing wrong? Unity 2018.3 and toolkit: Babylon Editor Toolkit 2018-11 and Redist.
Code
/* Babylon Editor Script Component (C# UnityScript) */
using System;
using UnityEditor;
using UnityEngine;
using Unity3D2Babylon;
namespace MyProject
{
public class TestEditorComponent : EditorScriptComponent
{
[Header("-Script Properties-")]
[BabylonProperty]
public string hello = "Hello World";
protected TestEditorComponent()
{
this.babylonClass = "PROJECT.TestComponent";
}
}
}
typescript:
/* Babylon Mesh Component Template */
/// <reference path="../../Babylon/Library/babylon.manager.d.ts" />
/// <reference path="../../Babylon/Library/babylon.d.ts" />
module PROJECT {
export class TestComponent extends BABYLON.MeshComponent {
public constructor(owner: BABYLON.AbstractMesh, scene: BABYLON.Scene, tick: boolean = true, propertyBag: any = {}) {
super(owner, scene, tick, propertyBag);
}
protected start() :void {
console.log(this.getProperty<string>("hello"));
// Start component function
}
}
}