GoUnity icon indicating copy to clipboard operation
GoUnity copied to clipboard

GoLang Script Handler for Unity

GoUnity

GoLang Script Handler for Unity

Using Golang as a scripting language for Unity

Using the go2cs source converter, you can use Golang as a scripting language for the Unity gaming platform.

Initial Example:

  • Source Golang-based Unity Script: SplineExample.go
    • Script inspired by the following C# Unity script example included with the Vectrosity asset
  • Current go2cs Converted C# Script: SplineExample.cs
    • Conversion is_very close!! Just need some directive parsing and grammar update for Go generics added to go2cs
  • Desired (Operational) Conversion: SplineExample-DesiredTarget.cs
  • Target Unity Script (MonoBehaviour class wrapper for converted struct): SplineFollow3D.cs
  • Initial Go-based MonoBehaviour: MonoBehaviour.go

Screenshot