Ejemplo n.º 1
0
 public TouchEventManipulator(InputProvider inputProvider)
 {
     m_InputProvider = inputProvider;
     activators.Add(new ManipulatorActivationFilter()
     {
         button = MouseButton.LeftMouse
     });
 }
Ejemplo n.º 2
0
        public SimulatorPreviewPanel(VisualElement rootElement, InputProvider inputProvider, DeviceInfo deviceInfo, SimulatorJsonSerialization states)
        {
            m_RootElement   = rootElement;
            m_InputProvider = inputProvider;
            m_DeviceInfo    = deviceInfo;
            EditorApplication.playModeStateChanged += OnEditorPlayModeStateChanged;

            Init(states);
        }
        public SimulatorPreviewPanel(VisualElement rootElement, InputProvider inputProvider, DeviceInfo deviceInfo, SimulatorJsonSerialization states)
        {
            m_RootElement   = rootElement;
            m_InputProvider = inputProvider;
            m_DeviceInfo    = deviceInfo;

            var userSettings = DeviceSimulatorUserSettingsProvider.LoadOrCreateSettings();

            m_HighlightSafeAreaColor     = userSettings.SafeAreaHighlightColor;
            m_HighlightSafeAreaLineWidth = userSettings.SafeAreaHighlightLineWidth;

            Init(states);
        }