// 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);
        }
예제 #2
0
 // draw content
 public Rect DrawContent(Object entity, EntityDrawContext drawContext)
 {
     return(DrawUtil.DrawContent(GetContent(entity), drawContext));
 }