Unreal Engine 4 C++ Cheat Sheet
(C) J. Böhmer, March 2018
Licensed under CC BY-NC-SA 4.0
Version 1.0
https://github.com/jbtronics/UE4-CheatSheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; The name of the installer | |
Name "YOURPROGRAM" | |
; To change from default installer icon: | |
;Icon "YOURPROGRAM.ico" | |
; The setup filename | |
OutFile "YOURPROGRAM_Setup.exe" | |
; The default installation directory |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"createdBy": "Redirector v3.2.1", | |
"createdAt": "2019-03-26T16:13:16.006Z", | |
"redirects": [ | |
{ | |
"description": "Redirect to latest docs", | |
"exampleUrl": "https://docs.rs/amethyst_gltf/0.5.1/amethyst_gltf/struct.GltfPrefab.html", | |
"exampleResult": "https://docs.rs/amethyst_gltf/*/amethyst_gltf/struct.GltfPrefab.html", | |
"error": null, | |
"includePattern": "https://docs.rs/*/*/*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Clamp<T> { | |
fn clamp(self, min: T, max: T) -> T; | |
} | |
impl<T> Clamp<T> for T | |
where | |
T: PartialOrd + Copy, | |
{ | |
fn clamp(self, min: T, max: T) -> T { | |
if self > max { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "test" | |
version = "0.1.0" | |
authors = ["YOU <YOU@users.noreply.github.com>"] | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"C_Cpp.clang_format_style": "file", | |
"C_Cpp.default.cStandard": "c11", | |
"C_Cpp.default.cppStandard": "c++17", | |
"bracket-pair-colorizer-2.highlightActiveScope": true, | |
"bracket-pair-colorizer-2.showBracketsInGutter": true, | |
"bracket-pair-colorizer-2.showHorizontalScopeLine": false, | |
"breadcrumbs.enabled": true, | |
"editor.dragAndDrop": false, | |
"editor.find.autoFindInSelection": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow compileAndMinify { | |
$jsFiles = Get-ChildItem -Recurse -Include *.js -Exclude *.min.js | |
parallel { | |
sequence { | |
$scssFiles = Get-ChildItem -Recurse -Include *.scss | |
ForEach -Parallel ($file in $scssFiles) { | |
$dir = (Get-Item $file).Directory.FullName | |
$cmd = ("sass """ + $($file.FullName) + """ """ + $dir + "\" + $file.BaseName + ".css""") | |
Invoke-Expression $cmd | |
} |