- 최신
- 최다 투표
- 가장 많은 댓글
Hi @REDACTEDUSER
So after digging a little more into this, you would need to add an ebus handler to the AWSScriptBehavior gem to set those variables. Given that the AWSScriptBehavior is mainly a wrapper around the AWS C++ sdk functions to make them available to Lua and Scipt Canvas you might just want to call the C++ functions rather than use the AWSScriptBehavior.
Hope that helps
Hi @REDACTEDUSER
All ebuses are accessible in C++, functions that are refelcted to the behavior context are accessible in Lua and Script Canvas as well
Ex: the ones reflected in void AWSBehaviorHTTP::ReflectBehaviors(AZ::BehaviorContext* behaviorContext)
Just to be sure you have the CloudGemFramework and CloudCanvasCommon dependencies in your project as well right?
dev\Gems\CloudGemAWSScriptBehaviors\gems.json.
Hi naotoy,
Thanks for posting! From my understanding that class was intended to allow developers to execute service API's directly from LUA. I'll confirm with the rest of the team and get back to you on Monday.
Cheers!
Hi @REDACTEDUSER
I do have both of those dependencies included and have my handlers set as well as the pure virtual functions in place to receive notifications.
Could you possibly explain to me how you would do the C++ equivalent of this Lua example?
local apiCall = AWSBehaviorAPI()
apiCall.ResourceName = "myResource.ServiceApi"
apiCall.Query = "/my/personal/api/path/"
apiCall:Execute()
I imagined it would have been with utilizing the 'CloudGemAWSScriptBehaviors::AWSBehaviorAPI' class from 'Gems\CloudGemAWSScriptBehaviors\Code\Source\AWSBehaviorAPI.h' looking something like this:
const CloudGemAWSScriptBehaviors::AWSBehaviorAPI apiCall;
apiCall.m_resourceName = "myResource.ServiceApi"
apiCall.m_query = "my/personal/api/path"
apiCall.m_httpMethod = "GET"
.. or something like that?
이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.