Skip to content

Instantly share code, notes, and snippets.

View Stiner's full-sized avatar

Stiner

View GitHub Profile
@Stiner
Stiner / ChangeURL.py
Last active April 10, 2024 03:19
Hitomi Downloader 에 등록된 Manatoki URL 을 전부 변경 해 주는 Python 스크립트
# Copyright by Stiner v0.2.0
# Downloader 에는 Manatoki 만 있다는 가정하에 작성
import sqlite3
import json
new_manatoki = "manatoki333.net"
def change_url(url:str) -> str:
tokens = url.split('/')
@Stiner
Stiner / GenerateProjectFiles.bat
Created July 7, 2023 02:09
Script for generating Unreal Engine project files.
@echo off
set CUR_DIR=%~dp0
for /f "tokens=*" %%a in ('"dir /b/s %CUR_DIR%\*.uproject"') do set PROJECT_PATH=%%a
set TOOL_PATH="%ProgramFiles(x86)%\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe"
%TOOL_PATH% /projectfiles %PROJECT_PATH%

GetLifetimeReplicatedProps 링크 오류

class AGameCharacter : public ACharacter
{
protected:
    UPROPERTY(Replicated)
    int isJumping;

public:
//-----------------// //------------------//
// 6-------7 // // Y Z //
// /| /| // // | / //
// 4-------5 | // // |/ //
// | 2-----|-3 // // -----/-----X //
// |/ |/ // // /| //
// 0-------1 // // / | //
//-----------------// //------------------//
@Stiner
Stiner / 주석 영역.snippet
Last active January 21, 2022 01:07
Code Snippet for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>주석 영역</Title>
<Author>Stiner</Author>
<Description>주석 영역 만들기</Description>
<Shortcut>//--</Shortcut>
</Header>
<Snippet>
@Stiner
Stiner / FillQuadToScreen.cs
Created October 11, 2021 07:26
Quad를 Camera의 Frustum 내에 맞추는 스크립트
using UnityEngine;
public class FillQuadToScreen : MonoBehaviour
{
[SerializeField] private Camera m_camera = null;
[SerializeField] private float m_distance = 1f;
private Transform m_transform = null;
private Transform m_cameraTransform = null;
@Stiner
Stiner / TextureStreamingDebug.shader
Last active March 30, 2021 01:02
Texture Streaming Debug shader for Unity
// https://docs.unity3d.com/kr/current/Manual/TextureStreaming-API.html
Shader "Show Texture Streaming"
{
Properties
{
_MainTex ("", 2D) = "white" {}
_Control ("Control (RGBA)", 2D) = "red" {}
_Splat3 ("Layer 3 (A)", 2D) = "white" {}
_Splat2 ("Layer 2 (B)", 2D) = "white" {}
@Stiner
Stiner / settings.json
Created April 1, 2020 01:56
Exclude file patterns for Unity Visual Studio Code
{
"files.exclude": {
".vs": true,
".vscode": true,
"[Ll]ibrary": true,
"[Ll]ogs": true,
"[Oo]bj": true,
"[Pp]ackages": true,
"[Pp]roject[Ss]ettings": true,
"[Tt]emp": true,
// Smooth
x = lerp(x, target_x, 0.1);
x += (target_x - x) * 0.1;
// Spring
spdx = lerp(spdx, (target_x - x) * 0.5, 0.2);
x += spdx;
@Stiner
Stiner / .gitignore
Created November 3, 2017 01:33
Git ignore list for Unreal
Binaries
DerivedDataCache
Intermediate
Saved
.svn
.vs
*.VC.db
*.opensdf
*.opendb
*.sdf