Skip to content

Instantly share code, notes, and snippets.

View PreyK's full-sized avatar
💻
Git Gud

PreyK

💻
Git Gud
  • Basement, Listenbourg
View GitHub Profile
@PreyK
PreyK / OpenCV.Build.cs
Created March 5, 2019 10:27
Modified build script of https://github.com/Brandon-Wilson/OpenCV-Plugin to work un newer unreal versions
// Some copyright should be here...
//modified to work with unreal 4.21
using UnrealBuildTool;
using System.IO;
public class OpenCV : ModuleRules
{
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../../../ThirdParty/")); }
@PreyK
PreyK / sample.cs
Created July 26, 2019 13:02
c# uj thread
using System;
using System.Threading;
namespace Threading
{
class Program
{
static void Main(string[] args)
{
//ez indit el egy uj threadet
@PreyK
PreyK / server_sample.cs
Created August 5, 2019 16:22
server_sample.cs
void Start()
{
server = new TcpServer();
server.Port = port;
server.VerifyConnectionInterval = 1;
server.Open();
server.OnDataAvailable += Server_OnDataAvailable;
server.OnConnect += Server_OnConnect;
}
function OnNavButton(s) {
switch (s) {
case "3D":
console.log("Switched to 3d");
break;
case "filter":
console.log("Switched to filters");
break;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProceduralGrass : MonoBehaviour
{
private Terrain terrainToPopulate;
public int grassDensity;
public int patchDetail;
[ContextMenu("Grass")]
@PreyK
PreyK / timer
Created December 1, 2020 18:20
public static Coroutine StartTimer01(this MonoBehaviour mb, float exitTime, Action onFinished, Action<float> onUpdate)
{
return mb.StartCoroutine(Timer01(exitTime, onFinished, onUpdate));
}
public static IEnumerator Timer01(float exitTime, Action onFinished, Action<float> onUpdate)
{
float journey = 0f;
while (journey <= exitTime)
{
@PreyK
PreyK / log1.txt
Created January 7, 2021 14:23
Unity Error Log
Unhandled exception: page fault on read access to 0xffffffffffffffe0 in 64-bit code (0x00007f6ce1a57fe4).
Register dump:
rip:00007f6ce1a57fe4 rsp:0000000000319978 rbp:0000000000319a30 eflags:00010283 ( R- -- I S - - -C)
rax:0000000000319cb0 rbx:0000000000425050 rcx:0000000000319cb0 rdx:ffffffffff90ce30
rsi:00000000006f31d0 rdi:0000000000319cb0 r8:ffffffffff90ce30 r9:0000000000000000 r10:00000000006f31d0
r11:0000000000000293 r12:0000000000000000 r13:00000000006f31d0 r14:0000000000000000 r15:0000000000000000
Stack dump:
0x0000000000319978: 00007f6ce101a998 0000000000000000
0x0000000000319988: 0000000000000000 0000000000000000
0x0000000000319998: 0000000000000000 0000000000000000