You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Copying //Tasks/UE4/Release-4.20-EnterpriseLateFeatures to Release-4.20 (//UE4/Release-4.20) #rb simon.tourangeau #jira UE-59798, UE-58919, UE-59480 #ROBOMERGE-SOURCE: CL 4119095 in //UE4/Release-4.20/... #ROBOMERGE-BOT: RELEASE (Release-4.20 -> Release-Staging-4.20) [CL 4119100 by jerome delattre in Staging-4.20 branch]
65 lines
1.3 KiB
C#
65 lines
1.3 KiB
C#
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Input;
|
|
|
|
namespace nDisplayLauncher.Config
|
|
{
|
|
public class SceneNodeView
|
|
{
|
|
public List<SceneNodeView> children { get; set; }
|
|
|
|
public SceneNode node { get; set; }
|
|
|
|
public bool isSelected { get; set; }
|
|
public bool isExpanded { get; set; }
|
|
|
|
public SceneNodeView()
|
|
{
|
|
isSelected = false;
|
|
isExpanded = false;
|
|
children = new List<SceneNodeView>();
|
|
node = new SceneNode();
|
|
}
|
|
public SceneNodeView(SceneNode item)
|
|
{
|
|
isSelected = false;
|
|
isExpanded = false;
|
|
children = new List<SceneNodeView>();
|
|
node = item;
|
|
}
|
|
|
|
//Return child Scene node View if it equal argument scene node
|
|
public SceneNodeView FindNodeInChildren(SceneNodeView item)
|
|
{
|
|
SceneNodeView output = null;
|
|
if (this.node == item.node.parent)
|
|
{
|
|
output = this;
|
|
}
|
|
else
|
|
{
|
|
foreach (SceneNodeView child in this.children.ToList())
|
|
{
|
|
if (child.node == item.node.parent)
|
|
{
|
|
output = child;
|
|
}
|
|
else
|
|
{
|
|
if (child.children.Count > 0)
|
|
{
|
|
output = child.FindNodeInChildren(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return output;
|
|
}
|
|
}
|
|
}
|