3 Page 3. The Unreal Blog

How to get a random element of an array with probability in...

We'll be using C++ for this tutorial, but it can be easily adapted for Blueprints.Let's imagine we have a FExampleStructure structure, which contains any properties and Probability field:This structure will be used as TArray. Depending on this property, a certain element of the array is more likely to be selected than others, and vice...

Georgy Treshchev Georgy Treshchev May, 8 2021

How to print strings to console or screen in Unreal Engine...

There are many reasons why this may be needed: for example, for debugging or testing code execution.We can define a custom log:If you decide to use a custom log, just replace "LogTemp" from the examples below with the name of your log ("LogNameExample" from the example above)Simple message: String message:Int message:Float message:FVector...

Georgy Treshchev Georgy Treshchev Apr, 1 2021

How to work with Imported Sound Wave

The Runtime Audio Importer plugin imports the sound wave not as a standard USoundWave, but as a UImportedSoundWave, which has its own methods and...

Georgy Treshchev Georgy Treshchev Mar, 17 2021

Pre-importing audio files into the editor...

Here I will show you how to pre-import audio files into the editor using the Runtime Audio Importer plugin.The plugin only supports pre-importing of...

Georgy Treshchev Georgy Treshchev Mar, 4 2021