选自过去1~2周 自己所看到外文内容:https://twitter.com/search?q=%23UE4&src=recent_search_click&f=live 和各种其他博客来源吧
Quick #UE4 Tip number 59.
Want to make sure you are casting to the right type? Use this C++ code snippet which will fail to compile if you cast incorrect type.
https://twitter.com/RyanJon2040/status/1335105371384532992
快速#UE4技巧第59。
是否要确保使用正确的类型? 使用此C ++代码段,如果您强制转换错误的类型,则该代码段将无法编译。
https://twitter.com/RyanJon2040/status/1334742983502155777
Quick #UE4 Tip number 58. Don't forget that #UnrealEngine has Print Text that does exactly what Print String do. I've seen people often converting Text to String for Print String.
快速#UE4提示第58。
不要忘记#UnrealEngine的“打印文本”功能与“打印字符串”功能完全相同。 我见过人们经常将文本转换为打印字符串的字符串。
Quick #UE4 Tip number 57. You want your 4.26 (or above) project to support Win32? You can by enabling Target 32bit option from Project Settings -> Windows.
https://twitter.com/RyanJon2040/status/1334380595602993156
快速#UE4提示第57。
您要您的4.26(或更高版本)项目支持Win32吗? 您可以通过从Project Settings -> Windows启用Target 32bit 选项。
Quick #UE4 Tip number 56. Having trouble playing sound from Media Player in UE4? Try enabling Native Audio Out from Project Settings -> Plugins -> WMF Media. Not all platforms are supported.
https://twitter.com/RyanJon2040/status/1334018207674470407
快速#UE4提示第56。
在UE4中播放Media Player的声音时遇到问题吗? 尝试从Project Settings -> Plugins -> WMF Media 启用Native Audio Out。 并非所有平台都受支持。
Quick #UE4 Tip number 55. Unable to select translucent actors from viewport (e.g: Mesh with glass material)? Make sure to enable Allow Translucent Selection.
https://twitter.com/RyanJon2040/status/1333655819703910406
快速#UE4提示第55。
无法从视口中选择半透明的actor(例如:玻璃材质的网格)? 确保启用“允许半透明选择”。快捷键是T。
Quick #UE4 Tip number 54. Need multi-line description for your
Plugin? Use "\n" in your description.
https://twitter.com/RyanJon2040/status/1333293431876149250
快速#UE4提示第54。
需要多行描述
@虚幻引擎
Plugin? 在描述中使用“ \ n”。
Quick #UE4 Tip number 53. Want to set a variable in a const function? Use "mutable" keyword for your variable. Example:
UPROPERTY() mutable int32 MyInteger; void SomeConstFunction() const { MyInteger = 1; }
https://twitter.com/RyanJon2040/status/1332931044031549442
快速#UE4提示第53。
是否想在const函数中设置变量? 使用“mutable”可变关键字作为变量。 例:
Quick #UE4 Tip number 52. Don't kow how your assets are referenced? Reference Viewer comes to your rescue. Right click on an asset and select reference viewer to see how your assets are linked.
https://twitter.com/RyanJon2040/status/1332568656501411841
快速#UE4提示第52。
不知道如何引用您的资产? Reference Viewer可以助您一臂之力。 右键单击资产,然后选择参考查看器以查看如何链接资产。
Quick #UE4 Tip number 51. Looking for a way to convert string to math expressions (eg: 12+34*(1/56)+(78-9)? Use FMath::Eval static method.
https://twitter.com/RyanJon2040/status/1332206268262526976
快速#UE4提示第51。
寻找一种将字符串转换为数学表达式的方法(例如:12 + 34 *(1/56)+(78-9)?使用FMath :: Eval静态方法。
Quick #UE4 Tip number 50. You can use RemoveSwap, RemoveAtSwap etc on an array for more efficient element removal. This does not preserve the order of elements though.
https://twitter.com/RyanJon2040/status/1331843880501866496
快速#UE4提示第50。
您可以在数组上使用RemoveSwap,RemoveAtSwap等,以更有效地删除元素。 但是,这不会保留元素的顺序。
Quick #UE4 Tip number 49. Want to pass variables as reference without const? Use UPARAM(ref)
https://twitter.com/RyanJon2040/status/1331481492640378880
快速#UE4技巧第49。
是否希望在不使用const的情况下将变量作为引用传递? 使用UPARAM(参考)
Quick #UE4 Tip number 48. Having trouble accessing non-const functions from a const type? Here is how you remove const.
https://twitter.com/RyanJon2040/status/1331119104649011201
快速#UE4提示第48。
无法从const类型访问非const函数吗? 这是删除const的方法。
Quick #UE4 Tip number 47. Want to get multiple types from a single function with return value? Use '&' in parameters.