# Help For Getting Started Code Errors

**URL:** <https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441>\
**Category:** Questions\
**Tags:** unity-exporter\
**Created:** [July 11, 2019, 8:45pm UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441 "2019-07-11T20:45:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![basayx](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/basayx/32/3334_2.png) [@basayx](https://forum.babylonjs.com/u/basayx)\
**Post date:** [July 11, 2019, 8:45pm UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441/1 "2019-07-11T20:45:25Z")

</div>

Hi,  
I just begin to work on Unity with babylon.js and I am trying follow the getting started guide.  
I copied the code from the [Getting Started Video](https://www.babylontoolkit.com/videos/GettingStarted.mp4) but it is not working for me. Why, someone can i help me about this subject?

Here is the codes:

**ts**

```
 /* Babylon Scene Controller Template */
module PROJECT {
    export class SceneController extends BABYLON.MeshComponent {
        public constructor(owner: BABYLON.AbstractMesh, scene: BABYLON.Scene, tick: boolean = true, propertyBag: any = {}) {
            super(owner, scene, tick, propertyBag);
        }

        protected ready() :void {
            // Scene execute when ready
        }

        protected start() :void {
            // Start component function
            let hello:string = this.getProperty("hello","Hello World");
            console.log("Scene Controller Says: " + hello);
        }

        protected update() :void {
            // Update render loop function
        }

        protected after() :void {
            // After render loop function
        }

        protected destroy() :void {
            // Destroy component function
        }
    }
}

```

**cs**

```
/* Babylon Editor Script Component (C# UnityScript) */
using System;
using UnityEditor;
using UnityEngine;
using Unity3D2Babylon;

namespace MyProject
{
	public class SceneController : EditorScriptComponent
	{
        [Header("-Script Properties-")]

        [BabylonProperty]
        public string hello = "Hello World";

		protected SceneController()
		{
			this.babylonClass = "PROJECT.SceneController";
		}
	}
}

```

And here is the error on chorme console:  
`babylon.js:16 BJS - [23:42:27]: Unable to load from scenes/SampleScene.babylon: Error in onSuccess callback`

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 11, 2019, 9:10pm UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441/2 "2019-07-11T21:10:51Z")

</div>

Pinging @MackeyK24

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [July 11, 2019, 10:34pm UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441/3 "2019-07-11T22:34:53Z")

</div>

That could really anything… try without any scripts attached to node… see if you can just export the geometry first…

If you like, package up the scene and send it to me… I’ll see if I can see anything

---

<div class="post-metadata">

**Author:** ![basayx](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/basayx/32/3334_2.png) [@basayx](https://forum.babylonjs.com/u/basayx)\
**Post date:** [July 12, 2019, 3:43pm UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441/5 "2019-07-12T15:43:07Z")

</div>

Thank you for your reply.  
I uploaded the unity project. If you can check it, I will be grateful for.

> **[BabylonDeneme.zip](https://drive.google.com/file/d/1SITz-WUWGGWITOCWJuz3adCqreWpMxPV/view?usp=sharing)**
>
> Google Drive file.

  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [July 13, 2019, 6:09am UTC](https://forum.babylonjs.com/t/help-for-getting-started-code-errors/4441/6 "2019-07-13T06:09:02Z")

</div>

Your Scene is fine… You forgot to enable typescript and click **detect compiler location** button to setup where you have typescript installed… If you dont have typescript installed:

```auto
npm install -g typescript

```

Please watch the whole getting started video: [https://www.babylontoolkit.com/videos/GettingStarted.mp4](https://www.babylontoolkit.com/videos/GettingStarted.mp4)

It has details to get your started 🙂
