Skip to content

Commit

Permalink
Support for 5.6.0b6
Browse files Browse the repository at this point in the history
- Namespace changes UnityEngine.Experimental.Director to
UnityEngine.Playables
- Use IPlayable interface instead of Playable where possible
  • Loading branch information
Borealux committed Jan 31, 2017
1 parent 3e63f71 commit 742c01b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Assets/Clients/GraphVisualizerClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Experimental.Director;
using UnityEngine.Playables;

// Bridge between runtime and editor code: the graph created in runtime code can call GraphVisualizerClient.Show(...)
// and the EditorWindow will register itself with the client to display any available graph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Linq;
using System.Text.RegularExpressions;
using GraphVisualizer;
using UnityEngine.Experimental.Director;
using UnityEngine.Playables;

public class DefaultGraphRenderer : IGraphRenderer
{
Expand Down
6 changes: 3 additions & 3 deletions Assets/Editor/GraphVisualizer/PlayableGraphVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
using GraphVisualizer;
using UnityEngine.Experimental.Director;
using UnityEngine.Playables;

public class PlayableGraphNode : Node
{
Expand All @@ -13,10 +13,10 @@ public PlayableGraphNode(PlayableHandle content, float weight = 1, bool active =

public override Type GetContentType()
{
Playable p = null;
IPlayable p = null;
try
{
p = ((PlayableHandle)content).GetObject<Playable>();
p = ((PlayableHandle)content).GetObject<IPlayable>();
}
catch
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using GraphVisualizer;
using UnityEngine.Experimental.Director;
using UnityEngine.Playables;
using UnityEditor.Animations;

public class PlayableGraphVisualizerWindow : EditorWindow, IHasCustomMenu
Expand Down

0 comments on commit 742c01b

Please sign in to comment.