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
void UWidgetUtil::RecursiveGetChild(UWidget* Parent, const int32 Count) | |
{ | |
if (UPanelWidget* Panel = Cast<UPanelWidget>(Parent)) | |
{ | |
TArray<UWidget*> Widgets = Panel->GetAllChildren(); | |
for (UWidget* Widget : Widgets) | |
{ | |
if (Widget) | |
{ | |
UE_LOG(LogTemp, Log, TEXT("%d %s"), Count, *Widget->GetFName().ToString()); |
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
Shader "Custom/shadow" { | |
Properties { | |
_Color ("Main Color", Color) = (1,1,1,0.5) | |
_MainTex ("Texture", 2D) = "white" {} | |
_LineColor("Line Color", Color) = (0,0,0,1) | |
_Distance("Distance", Float) = 1.0 | |
_Angle("Angle", Float) = 45 | |
} | |
SubShader { |
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
Function StringFormat(format As String, ParamArray params() As Variant) | |
Dim find As String | |
StringFormat = format | |
For i = 0 To UBound(params) | |
find = "{" & i & "}" | |
StringFormat = Replace(StringFormat, find, params(i)) | |
Next i | |
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
{ | |
// Place your snippets for csharp here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"sample": { | |
"prefix": "sample", | |
"body": [ | |
"samplesample", |