Thanks for sharing! We also have a Third-Person Character Controller sample by now
Hey !
No problem,
i cam going to look this sample now thanks you
by user 191204280198234122
I dont found this, I have found sample but no code, i dont understand how its organised
by user 191204280198234122
The character in the scene has a character controller component and a component for handling the input
Okay, i need to create 2 script, one for input, one for control my character ?
by user 191204280198234122
You dont have to do it like that - thatβs just how the sample is currently setup.
Oh okay, sorry Iβm very new on 3D
by user 191204280198234122
And we have button for re-generates script ? I have create new .ts in my scripts folder but it not autmaticaly generated in cs script
by user 191204280198234122
Try enabling disabling the component compiler (its on the exportinfo object)
Not working
by user 191204280198234122
Run codegen for Rotates.ts at /Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Projects/CollaborativeSandbox/src/scripts/Rotates.ts
Command: node component-compiler.js "/Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Assets/Needle/Components.codegen2" "/Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Projects/CollaborativeSandbox/src/scripts/Rotates.ts" in /Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Library/PackageCache/com.needle.engine@2.49.1-pre/package~/node_modules/@needle-tools/needle-component-compiler/src
Log at: /Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Assets/../Temp/component-compiler.log
UnityEngine.Debug:Log (object)
Needle.Engine.Codegen.ComponentGeneratorRunner/<Run>d__0:MoveNext () (at Library/PackageCache/com.needle.engine-exporter@2.49.1-pre/Core/Runtime/Codegen/ComponentGeneratorRunner.cs:39)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>:Start<Needle.Engine.Codegen.ComponentGeneratorRunner/<Run>d__0> (Needle.Engine.Codegen.ComponentGeneratorRunner/<Run>d__0&)
Needle.Engine.Codegen.ComponentGeneratorRunner:Run (string,string,string,string)
Needle.Engine.Codegen.CodeWatcher/<ProcessChangedFiles>d__29:MoveNext () (at Library/PackageCache/com.needle.engine-exporter@2.49.1-pre/Core/Runtime/Codegen/CodeWatcher.cs:160)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<Needle.Engine.Codegen.CodeWatcher/<ProcessChangedFiles>d__29> (Needle.Engine.Codegen.CodeWatcher/<ProcessChangedFiles>d__29&)
Needle.Engine.Codegen.CodeWatcher:ProcessChangedFiles ()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:356)
by user 191204280198234122
He work because he have create Components.codegen2 when i have save my Rotates.ts file, but Rotate.cs doesnt exist
by user 191204280198234122
Can you show your script file content? Have you checked the compiler log ? The path is printed in the message you sent
import { Behaviour, serializable } from "@needle-tools/engine";
export class Rotate extends Behaviour
{
@serializable()
speed : number = 1;
start(){
// logging this is useful for debugging in the browser.
// You can open the developer console (F12) to see what data your component contains
console.log(this);
}
update(){
// this.gameObject.rotateY(this.speed * this.context.time.deltaTime / 1000);
}
}
by user 191204280198234122
This is my script
by user 191204280198234122
Yes the compiler log is the previous quote message ^
by user 191204280198234122
I mean this path Log at: /Users/ilaan/Documents/Epitech/HUB/Exp/UnityTest/Assets/../Temp/component-compiler.log
Oh, okay wait i read
by user 191204280198234122
I dont have this file in Temp folderβ¦
by user 191204280198234122