Merge branch 'engine-play-mode' of https://github.com/Tryibion/FlaxEngine into Tryibion-engine-play-mode
This commit is contained in:
@@ -442,6 +442,15 @@ bool Engine::IsEditor()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Engine::IsPlayMode()
|
||||||
|
{
|
||||||
|
#if USE_EDITOR
|
||||||
|
return Editor::IsPlayMode;
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
int32 Engine::GetFramesPerSecond()
|
int32 Engine::GetFramesPerSecond()
|
||||||
{
|
{
|
||||||
return EngineImpl::Fps;
|
return EngineImpl::Fps;
|
||||||
|
|||||||
@@ -178,6 +178,11 @@ public:
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
API_PROPERTY() static bool IsEditor();
|
API_PROPERTY() static bool IsEditor();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns whether the editor is in play mode or will always return true in a shipped applications.
|
||||||
|
/// </summary>
|
||||||
|
API_PROPERTY() static bool IsPlayMode();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the amount of frames rendered during last second known as Frames Per Second. User scripts updates or fixed updates for physics may run at a different frequency than scene rendering. Use this property to get an accurate amount of frames rendered during the last second.
|
/// Gets the amount of frames rendered during last second known as Frames Per Second. User scripts updates or fixed updates for physics may run at a different frequency than scene rendering. Use this property to get an accurate amount of frames rendered during the last second.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user