As a new player of UPBGE, I tried to use python script to load STL files. During this process, by running the script through the script running interface of UPBGE, the STL file can be successfully added and the STL model can be imported, as shown in the figure below.
However, using the same script file and dynamically importing the STL file through buttons in the node logic will also load the model, but the model object will not be created in OutLiner, as shown in the figure below.
Please tell me how should I solve the above problems?
As a new player of UPBGE, I tried to use python script to load STL files. During this process, by running the script through the script running interface of UPBGE, the STL file can be successfully added and the STL model can be imported, as shown in the figure below.
However, using the same script file and dynamically importing the STL file through buttons in the node logic will also load the model, but the model object will not be created in OutLiner, as shown in the figure below.
Please tell me how should I solve the above problems?