0
На рассмотрении

Project crash because of script created joystick item

r riksma 9 лет назад в iRidium Script / Interface scripts обновлен Ekaterina (head of support) 9 лет назад 1
If you create a joystick item to use as a color picker by using a script, the project crashes when you click on the joystick. This is only in windows, on an iPad it works fine.
To reproduce:
-download your demo project:
https://s3.amazonaws.com/iRidiumWiki2.0/i2Scripts/JS_Iridium_demo_EditItem.irpz
-make sure you can click on the joystick by placing the code last or removing the other items.
-click and watch it crash.

Tested Editor versions:
V2.1.2.16841
V2.2.1.17647

Ответ

Ответ
На рассмотрении
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.
Ответ
На рассмотрении
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.

Сервис поддержки клиентов работает на платформе UserEcho