question

Resul Volkan Ozcan avatar image
Resul Volkan Ozcan asked

How to use custom struct as Function Parameter for Azure Cloud functions

Hi all,

I am developing a unity game and I want to pass a struct to Azure Cloud Script Function as input argument. I use visual Studio Code for Azure functions and Visual Studio 2019 for unity. As they are different solutions, the struct I created in Visual studio 2019 is not recognized in Visual Studio Code Azure project. Is there a way to make Azure function recognize my struct?

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Resul Volkan Ozcan avatar image
Resul Volkan Ozcan answered

I figured it out. Declaring the same struct in both Azure and Unity fixes the problem.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.