You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do i make it so constructors and methods get shown to udon
#1425
I'm working on a PR that adds more constructors to Vector3 and Vector2, but when i test them out PT doesn't think they exist even though they're practical 1 to 1 copies of other constructors in PTVector3. Is there any files I need to get it to work?
also PT.Print doesnt print things to the godot output
The script-visible types are the PT* proxy classes, not Godot’s raw Vector2 / Vector3. ScriptService maps Vector3 to PTVector3, and the script method resolver only exposes methods marked with [ScriptMethod]. So put each constructor overload on PTVector2 / PTVector3 as a static New(...) method and mark it [ScriptMethod]; adding an overload only to Godot’s Vector3 won’t make it appear in Udon/Luau. The existing New methods in those proxy classes are the pattern to follow.
PT.Print calls GD.Print when Godot is available, and in Creator builds also sends the line to the Creator debug console. If you’re launching a separate game process, its output won’t necessarily appear in the editor’s Output panel; check the Creator debug console or that process’s logs. Relevant code: PTVector3, ScriptService, and PT.Print.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm working on a PR that adds more constructors to Vector3 and Vector2, but when i test them out PT doesn't think they exist even though they're practical 1 to 1 copies of other constructors in PTVector3. Is there any files I need to get it to work?
also PT.Print doesnt print things to the godot output
All reactions