Skip to content

Instantly share code, notes, and snippets.

View Vatyx's full-sized avatar
💭
🎉

Sahil Dhanju Vatyx

💭
🎉
View GitHub Profile
Compiling leveldb-sys v2.0.8
error: failed to run custom build command for `leveldb-sys v2.0.8`
Caused by:
process didn't exit successfully: `C:\Users\sahildhanju\Documents\leveldb\target\debug\build\leveldb-sys-90fdc454faa06149\build-script-build` (exit code: 101)
--- stdout
[build] Started
[leveldb] Building
running: "cmake" "C:\\Users\\sahildhanju\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\leveldb-sys-2.0.8\\deps\\leveldb-1.22" "-G" "Visual Studio 15 2017" "-Thost=x64" "-Ax64" "-DLEVELDB_BUILD_TESTS=OFF" "-DLEVELDB_BUILD_BENCHMARKS=OFF" "-DCMAKE_INSTALL_LIBDIR=C:\\Users\\sahildhanju\\Documents\\leveldb\\target\\debug\\build\\leveldb-sys-58c5a306fd7e9244\\out\\lib" "-DHAVE_SNAPPY=OFF" "-DCMAKE_INSTALL_PREFIX=C:\\Users\\sahildhanju\\Documents\\leveldb\\target\\debug\\build\\leveldb-sys-58c5a306fd7e9244\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_A
#include "ViewmodelSkeletalMeshComponent.h"
#include "Kismet/GameplayStatics.h"
void UViewmodelSkeletalMeshComponent::BeginPlay()
{
Super::BeginPlay();
PlayerController = UGameplayStatics::GetPlayerController(this, 0);
@Vatyx
Vatyx / SiblingComponentAttribute.cs
Last active April 12, 2024 12:20
Unity SiblingComponent Attribute
namespace Core.Attributes
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
using UnityEngine;
[AttributeUsage(AttributeTargets.Field)]
struct FTMatrix
{
private TArray<bool> Storage;
private int N;
private int M;
FTMatrix(int N, int M)
{
this.N = N;
template <typename Base, typename Derived>
struct TSerialize
{
static void Do(FArchive& Ar, const TUniquePtr<Base>& Payload)
{
Ar.SerializeBits(Payload.Get(), sizeof(Derived));
}
};
template <typename Base, typename Derived>