Skip to content

Instantly share code, notes, and snippets.

@johnseabird
johnseabird / Usage.cs
Created August 30, 2024 17:08 — forked from ArieLeo/Usage.cs
DrawMeshInstancedIndirect with ShaderGraph and URP
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
class Render : MonoBehaviour
{
struct DrawData
{
public Vector3 Pos;
public Quaternion Rot;
import bpy
sourceObj = bpy.data.objects['Armature.001']
targetObj = bpy.data.objects['Armature']
if targetObj.animation_data is not None:
targetObj.animation_data_clear()
targetObj.animation_data_create()