Xtreme3D Community
Problem with MaterialCreate (Solved) - Версия для печати

+- Xtreme3D Community (https://xtreme3d.ru/forums)
+-- Форум Xtreme3D (https://xtreme3d.ru/forums/forumdisplay.php?fid=3)
+--- Форум Вопросы и ответы (https://xtreme3d.ru/forums/forumdisplay.php?fid=6)
+--- Темы: Problem with MaterialCreate (Solved) (/showthread.php?tid=80)



Problem with MaterialCreate (Solved) - riddlerecksdee - 07-07-2023

I am using version 3.9 (gm8.1) and when I use MaterialCreate, it says I need one more argument. However in all of the examples and in the russian and english documentation, MaterialCreate uses 2 arguments and not 3 without error. What argument is missing, and how do I fix this?


Problem with MaterialCreate (Solved) - Gecko - 07-07-2023

It is a bug in the GML binding which was fixed in version 3.9.1. The library actually has only 2 arguments: name and file path. The third can be safely removed from the scripts (init_material and MaterialCreate).