- 최신
- 최다 투표
- 가장 많은 댓글
You could alter the waf file to include the Gems folder if not already done, just open the wscript and alter the bld.<ProjectName> call and add the gem folder to the includes item.
def build(bld):
bld.<ProjectName>(
...
includes = [...,
bld.Path('Gems'),
...],
...
)
then you could just use
#include <Chatplay/Code/Include/ChatPlay/ChatPlayBus.h>
or you could be less generic and include that gem only in the includes
bld.Path('Gems/Chatplay/Code/Include'),
...
#include <ChatPlay/ChatPlayBus.h>
I added in the gem into the 'use' folder which does the 'pathing' for you.
ie. use = ['ChatPlay']
Thanks for your suggestion!
Provided you have already enabled the Gem in your project, you can just do "#include <GemName/GemNameBus.h>" as stated in the Gem Docs.
In your case it would probably be "#include <ChatPlay/ChatPlayBus.h>"
Accessing Gems in Code
You can access gems through code, as in the following example:
<code>>#include <GemName/GemNameBus.h>
//...
EBUS_EVENT(GemName::GemNameRequestBus, MyFunction, withArgs);
이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.