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;