Skip to content

Instantly share code, notes, and snippets.

@HajiyevEl
HajiyevEl / FixMeshRotationEditor.cs
Created September 2, 2024 09:06 — forked from blizzy78/FixMeshRotationEditor.cs
FixMeshRotationEditor.cs - Unity: Fix mesh's rotation after importing from Blender
using UnityEngine;
using UnityEditor;
/*
Fixes a mesh's rotation after importing it from Blender. In Blender, the Z axis points in the
"up" direction, while in Unity, Z points in the "forward" direction. This script rotates the
mesh's vertices so that it is upright again.
To use this, create an object from a mesh in the hierarchy view, then locate the Mesh Filter
in the inspector. There, click on the new "Fix Rotation" button.
@HajiyevEl
HajiyevEl / README.md
Created October 14, 2024 11:21 — forked from jamiephan/README.md
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@HajiyevEl
HajiyevEl / OptimalSpatialHashing.cs
Created January 30, 2025 08:41 — forked from adammyhre/OptimalSpatialHashing.cs
Unity Spatial Hashing with Jobs and Burst
using System;
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class OptimalSpatialHashing : MonoBehaviour {
@HajiyevEl
HajiyevEl / WeaponSway.cs
Created March 15, 2025 08:03 — forked from pppoe252110/WeaponSway.cs
Correct Weapon Sway implementation which does not depend on fps
using UnityEngine;
public class WeaponSway : MonoBehaviour
{
[SerializeField] private Transform weaponTransform;
[Header("Sway Properties")]
[SerializeField] private float swaySmooth = 8f;
[SerializeField] private float swayDamp = 2f;
[SerializeField] private float posToRotAmount = 1f;