Skip to content

Instantly share code, notes, and snippets.

View kevincastejon's full-sized avatar

Kevin Castejon kevincastejon

View GitHub Profile
@kevincastejon
kevincastejon / SetParentBehaviour.cs
Last active March 25, 2024 16:45
These 4 scripts make the Timeline able to handle Gameobject's parenting
using UnityEngine;
using UnityEngine.Playables;
public class SetParentBehaviour : PlayableBehaviour
{
public Transform parentObject;
public override void ProcessFrame(Playable playable, FrameData info, object playerData)
{
if (parentObject == null) return;
@kevincastejon
kevincastejon / CustomEditorGenerator.cs
Last active February 3, 2025 01:16
CustomEditorGenerator
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
namespace Caskev.Tool
{
public class CustomEditorGenerator : Editor