// draw nodes representing scene root GameObject in a special color public override Rect DrawContent(ObjectNode entity, EntityDrawContext drawContext) { if (!entity.IsSceneObject) { return(DrawUtil.DrawContent(GetContent(entity), drawContext)); } var colorBackup = drawContext.style.backgroundColor; drawContext.style.backgroundColor = sceneNodeColor; var rect = DrawUtil.DrawContent(GetContent(entity), drawContext); drawContext.style.backgroundColor = colorBackup; return(rect); }
// draw content public Rect DrawContent(Object entity, EntityDrawContext drawContext) { return(DrawUtil.DrawContent(GetContent(entity), drawContext)); }