Game Development In Unity

I have recently started again in the area of game developnment. Earlier, I had mostly done learning in the area of VC++ for this.

From watching YouTube videos, it is the Unity Engine and C# that I am going with. The Unity Engine seems good. I searched for it on the Internet and found the website. The personal plan for the software is free. Next, I checked out the documentation.

I checked out a function, “WaitForSeconds” in the documentation. It may be obvious, that it is used for some kind of sleep in the code. What drew my attention, is the related function, “WaitForSecondsRealtime”. The difference between the two, from my initial guess work, was, I guess, the first one would be async and the later, not so, it would pause the whole program.

There was a mention of “yield” and “coroutine” on the page related to the above.

These don’t seem to be “normal” constructs when it comes to programming, from what I have learned in the college. So, I guess their meaning here. But, I also guess that, the use or the reference to these programming constructs would keep my mind shaking between two poles.

My guess:

function_call()
yield

My guess is that, this function, called “function_call” will be called coroutine and the calling function would halt until it returns, or, it will not, I think, it will continue execution, the yield keyword needs to be analyzed.

A look into the difference between the above mentioned 2 functions led me to the terms, “unscaled time” and “scaled time”, that seems to be the difference between the 2 functions. The concept of scaled/unscaled time is new to me, a search about it revealed nothing that can be used to grasp the meaning quickly, a related term “signal operations” came up. More analysis/search is needed for these terms.

声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论,对其完全的正确不做任何担保或假设
本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权,除非注明,本站文章均为原创,转载请注明转自 Amol's Game Blog 并应以链接形式标明本文地址!

你可能也对下列文章感兴趣

  • 没有相关文章!


Leave a Reply

Discover more from Amol's Game Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading