Skip to content

Instantly share code, notes, and snippets.

View an36's full-sized avatar
🎮
GameDeving with Unity

Abdullah Almarzouq an36

🎮
GameDeving with Unity
View GitHub Profile
@krzys-h
krzys-h / SaveRenderTextureToFile.cs
Last active June 24, 2024 06:54
[Unity] Save RenderTexture to image file
using UnityEngine;
using UnityEditor;
public class SaveRenderTextureToFile {
[MenuItem("Assets/Save RenderTexture to file")]
public static void SaveRTToFile()
{
RenderTexture rt = Selection.activeObject as RenderTexture;
RenderTexture.active = rt;
@BST-Github-Admin
BST-Github-Admin / BMI270_Arduino_example.ino
Last active May 13, 2021 03:30
Stream Accelerometer and Gyroscope date to the Arduino Serial terminal
#include "Arduino.h"
#include "SPI.h"
#include "Wire.h"
#include "bmi270.h"
#define BMI270_CS SS
#define BMI270_INT1 6
/* Callback function prototypes for the BMI270 Sensor API */