Unreal Engine 5 - Get data from Supabase in the Unreal Engine client

Описание к видео Unreal Engine 5 - Get data from Supabase in the Unreal Engine client

Unreal Engine 5 - Get data from Supabase in the Unreal Engine client
在虚幻引擎客户端中从 Supabase 获取数据

Go Code:
func GetDataSupabaseDB(skill_guid string, attack_power string) (s2c S2C_API_HeroCard_List) {
supabaseUrl := "SUPABASE-URL"
supabaseKey := "SUPABASE-KEY"

supabase := supa.CreateClient(supabaseUrl, supabaseKey)

results := []HeroCard{}
err := supabase.DB.From("skill_card").Select("*").LimitWithOffset(10, 0).Execute(&results)
if err != nil {
fmt.Println("db error=", err)
return
}

fmt.Println("db success=", results)
s2c.Status_Code = 0
s2c.Status_Text = "success"
s2c.Data = results

//c.JSON(http.StatusOK, s2c)
return s2c
}

Комментарии

Информация по комментариям в разработке