public override void ProcessFrame(Playable playable, FrameData info, object playerData) { Holoplay holoplay = playerData as Holoplay; if (holoplay == null) { Debug.LogError("HoloPlay is null"); return; } if (!holoplay.gameObject.activeInHierarchy || !holoplay.enabled) { return; } holoplay.fov = clipData.fov; holoplay.transform.localPosition = clipData.localPosition; holoplay.nearClipFactor = clipData.nearParam; holoplay.farClipFactor = clipData.farParam; holoplay.size = clipData.size; #if UNITY_EDITOR if (!UnityEditor.EditorApplication.isPlaying) { holoplay.RenderQuilt(); } #endif }
/// <summary> /// 動画再生中ならばテクスチャを更新 /// </summary> private void UpdateVideo() { if (videoPlayer && videoPlayer.isPlaying && texture) { // 強制的に描画? holoplay.RenderQuilt(); } }