Exemple #1
0
        override protected void OnButtonPressed()
        {
            base.OnButtonPressed();
            CreateWidgetCommand createCommand = new CreateWidgetCommand(
                WidgetManager.m_Instance.VideoWidgetPrefab, TrTransform.FromTransform(transform));

            SketchMemoryScript.m_Instance.PerformAndRecordCommand(createCommand);

            VideoWidget videoWidget = createCommand.Widget as VideoWidget;

            videoWidget.SetVideo(m_Video);
            videoWidget.Show(true);
            createCommand.SetWidgetCost(videoWidget.GetTiltMeterCost());

            WidgetManager.m_Instance.WidgetsDormant = false;
            SketchControlsScript.m_Instance.EatGazeObjectInput();
            SelectionManager.m_Instance.RemoveFromSelection(false);
        }
Exemple #2
0
 public void ConfigureVideo(VideoWidget videoWidget, string clipName, string overlayName = null, List <string> overlayTexts = null)
 {
     videoWidget.SetClip(Assets.GetVideo(clipName), overlayName, overlayTexts);
 }