public static Guid GetGuid(this Animatable node) { var appData = node.GetAppData(new ClassID(Loader.Class_ID), SuperClassID.BaseNode); var uidData = appData.GetChunk(0); Guid uid; if (uidData != null) { uid = new Guid(uidData); } else { uid = Guid.NewGuid(); appData.AddChunk(0, uid.ToByteArray()); } return(uid); }