Skip to content

Useful tips for work with Unreal Engine, Plastic SCM, Windows Power Shell

Notifications You must be signed in to change notification settings

dendnk/Tips-DNK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Tips-DNK

C++

Literature

  1. ISO/IEC 14882:2020 - Programming languages — C++, 2020
  2. Bjarne Stroustrup: The C++ Programming Language (4th Edition), 2013
  3. ISO/IEC 9899:2018 Information technology — Programming languages — C, 2018
  4. Brian W. Kernighan and Dennis M. Ritchie The C programming Language, 1988
  5. Stanley Lippman, Josée Lajoie, Barbara Moo C++ Primer (5th Edition) 5th Edition, 2012
  6. Paul Deitel, Harvey Deitel C++ How to Program 10th Edition, 2016
  7. Konstantin Vladimirov C++ lectures in russian : https://sourceforge.net/projects/cpp-lects-rus/

Unreal Engine

Movement parameters

p.VisualizeMovement 1/0 - show movement parameters and draw acceleration/velocity vectors

For updating Details panel in Editor check

GUnrealEd->UpdateFloatingPropertyWindows(true); 

Editor flow after clicking on component

FEditorViewportClient::ProcessClickInViewport -> FEditorViewportClient::ProcessClick(View,HitProxy,Key,Event,HitX,HitY) ->
-> FComponentVisualizerManager::HandleClick(FEditorViewportClient* InViewportClient, HHitProxy* HitProxy, const FViewportClick& Click) ->
-> FComponentVisualizerManager::HandleProxyForComponentVis(InViewportClient, HitProxy, Click);
=========================================
GUnrealEd->FindComponentVisualizer(ClickedComponent->GetClass());
bool bIsActive = Visualizer->VisProxyHandleClick(InViewportClient, VisProxy, Click);

Some useful tips for increasing FPS while in editor:

  1. Enable Game mode (toggling by key "G")
  2. Hide unnecessary objects (for instance: Landscapes (or setup them with proper parameters)
  3. Change View mode (for example from Lit to Unlit)
  4. You can check fps by command [stat fps] (input this command again to hide stats)
  5. Also you can check number of draw calls and polygons by command [stat rhi]

To generate ProjectName.xcworkspace file on Mac you need run command

/UnrealEngine/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh -project=/ProjectName/ProjectName.uproject -Game

To watch bytecode you need to add to Engine prints.ini or DefaultEngine.ini

[Kismet]
CompileDisplaysBinaryBackend=true

To watch C++ code

[Kismet]
CompileDisplaysTextBackend=true

But unreal can go down after that) UE5 crashed without patch And there are no much text prints in log, it needs to check in debugger what it want to print

To turn off conversions in any "control version" program, it needs to change GUID to the one similar value in register for all:

image

Plastic SCM

  • To fix line endings in plastic SCM you need to add the <AutoEolConversion>Auto</AutoEolConversion> in client.conf file.

Windows Power Shell

Renaming via special commands

Add prefix "A_" :

dir | Rename-Item -NewName {"A_" + $_.Name} 

Replace space on underscore :

dir | Rename-Item –NewName { $_.Name –replace “ “,”_” }

Replace letters to Upper case :

dir | Rename-Item -NewName {(Get-Culture).TextInfo.ToTitleCase($_.Name)} 

Rename all files in subfolders on TitleCase :

Get-ChildItem -Recurse | Rename-Item -NewName {(Get-Culture).TextInfo.ToTitleCase($_.Name)}

Refactoring

https://refactoring.guru/ru

About

Useful tips for work with Unreal Engine, Plastic SCM, Windows Power Shell

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published