本文档中的所有示例都使用 PlayableGraph Visualizer(如下图所示)来说明 Playables API 创建的树和节点。PlayableGraph Visualizer 是通过 GitHub 提供的工具。
usingUnityEngine;usingUnityEngine.Playables;usingUnityEngine.Animations;[RequireComponent(typeof(Animator))]publicclassPlayAnimationSample:MonoBehaviour{publicAnimationClipclip;PlayableGraphplayableGraph;voidStart(){playableGraph=PlayableGraph.Create();playableGraph.SetTimeUpdateMode(DirectorUpdateMode.GameTime);varpla...
Unity开源工具开发笔记-使用GraphView改进PlayableGraphVisualizer PlayableGraphVisualizer可以帮助我们可视化Runtime时的Playable运行状态,对开发者了解Playable的结构有非常大的帮助。 缺点: 有个缺点是多个output时,graph无法显示全 https://github.com/Unity-Technologies/graph-visualizer/issues/9 解决方案: 将Visualizer的...
Unity官方曾发布过一个用于查看当前PlayableGraph状态的工具 Graph Visualizer ,可以实时查看引擎中的PlayableGraph的结构信息。不过这个工具无法拖拽和缩放视图,在PlayableGraph结构比较复杂的时候,画面会比较难看,而且此工具自19年就不再更新了,所以最近我用GraphView重新实现了一个PlayableGraph监控工具PlayableGraph Monitor。
PlayableGraph Visualizer The PlayableGraph Visualizer is a tool that displays the PlayableGraphs in the scene. It can be used in both Play and Edit mode and will always reflect the current state of the graph. Playable nodes are represented by colored nodes, varying according to their type. Co...
PlayableGraph Visualizer PlayableGraph Visualizer是一个查看Playable graph结构的工具,这个工具目前来看还有些简单,它只能查看Graph的结构,没有编辑功能。但是对于Debug或者了解Playable graph的运行过程还是有帮助的。 PlayableGraph Visualizer下载地址: https:///UnityTech/graph-visualizer ...
PlayableGraphVisualizer可以帮助我们可视化Runtime时的Playable运行状态,对开发者了解Playable的结构有非常大的帮助。缺点:有个缺点是多个output时,graph无法显示全 github.com/Unity-Techno 解决方案:将Visualizer的功能移植到GraphView上Git链接:github.com/terrynoya/YJ目前功能仍在开发中unity新的UIElement中的GraphView组...
PlayableGraph Visualizer[com.unity.playablegraph-visualizer][]描述PlayableGraph Visualizer 是一种显示场景中的 PlayableGraph 的工具。此工具可以在运行模式和编辑模式下使用,并且将始终反映图形的当前状态。可播放项节点以彩色节点表示,颜色根据类型变化。连接线颜色强度表示权重。
public class PlayableGraphVisualizer : Graph { private PlayableGraph m_PlayableGraph; public PlayableGraphVisualizer(PlayableGraph playableGraph) { m_PlayableGraph = playableGraph; } protected override void Populate() { if (!m_PlayableGraph.IsValid()) return; int outputs = m_PlayableGraph.GetOutput...
graph-visualizer 插件 进行查看,下载自行百度 废话不多说 ,直接上代码: 1usingUnityEngine;2usingUnityEngine.Animations;3usingUnityEngine.Playables;45publicclassTestPlayable : MonoBehaviour6{7privateAnimator m_Animator;89[SerializeField]10privateAnimationClip m_AnimationClip;11privatePlayableGraph m_PlayableGraph...