Skip to content

Instantly share code, notes, and snippets.

View yamadamael's full-sized avatar

mael yamadamael

View GitHub Profile
@yamadamael
yamadamael / RecursiveGetChild.txt
Last active October 31, 2023 17:45
UE5: 再帰的なウィジェット探索
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());
@yamadamael
yamadamael / shadow.shader
Last active November 15, 2020 08:03
shadow.shader
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 {
@yamadamael
yamadamael / stringformat.vba
Created September 5, 2020 03:23
stringformat.vba
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
@yamadamael
yamadamael / csharp.json
Created August 6, 2020 06:01
vscode snipet for c#
{
// 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",