Delegates | Implementing a Game Phase System | Section 2 | Part 2 | Core | RTS Framework | UE5
ฝัง
- เผยแพร่เมื่อ 22 มิ.ย. 2024
- Continuing Section 2 we discuss our Game Phase System and cover Delegates in Unreal Engine. We then begin the implementation of the Game Phase System.
Timestamps:
00:00 Start
00:05 Lesson - Delegates, rvalue and lvalue
05:20 Code - Implementing Game Phase System
Support us and gain access to the project files, early access to videos and more on my Patreon: / rogueentity
Support, Share, Follow or just become a member of a Game Developer Community
Discord: roguentity.wixsite.com/rogue-...
Follow Twitter: / rogueentity2
Please leave a Like if you found the video helpful and Subscribe for more.
Thanks for watching!
#UE5 #UnrealEngine5 #UE5Tutorial #UnrealEngine #GameDev #GameDevelopment
______________________________________________________________________ - เกม
Big kudos once again to you for these videos.
Thanks, was a bit of a gamble I am glad people are enjoying them. Hoping once we get a good framework base we can use it to do some more advanced tutorial topics.
I am getting error in StartNextPhase() function the error is "No Operator+ matches arguments of type ERTSCore_GamePhaseState and int" , line "const int32 NextPhaseIndex = static_cast(GetGamePhaseState() + 1)"
please take a look
Is your ERTSCore_GamePhaseState a class? (enum class ERTSCore_GamePhaseState) ?
Ah wait i think you have a misplaced bracket on the cast, should be
const int32 NextPhaseIndex = static_cast(GetGamePhaseState()) + 1;
@@rogueentitydev Thank you
@@rogueentitydev Well I also specified enum class ERTSCore_GamePhaseState, but the error still points to const int32 NextPhaseIndex = static_cast(GetGamePhaseState() + 1);
Even though when I put +1 for brackets it worked.