[SOLVED] C++ API / Nodes / WorldTrigger


photo

Recommended Posts

image.thumb.png.2d2695f8468668dd56ee1e98aeabd955.png

 

How should I set the path to the red underlined part above? Debugging verifies that it contains a null value.

You are having a hard time creating an object with a script that is not an editor. There are many classes, but all concepts are unfamiliar.

What is the difference between objectMeshStaticPtr and objectMeshDynamicPtr?

Link to post

Hi there!

The path to a file is set relative to the project data/ folder - that actually means that you assume that you are inside the data folder of your project (which is created when you create a project in SDK browser). If you want to use the mesh which is outside this folder, you use ../ to go to a directory which is one layer from this data folder and make your way to the folder you need.

The difference between objectMeshStatic and objectMeshDynamic in brief is that Static Mesh cannot be modified in runtime (procedurally), and Dynamic Mesh can be. So if you want to tear or break your object in runtime, it makes sense to make it Mesh Dynamic.

If it's not the case, and you have known that all along, please, also check that you don't debug a release or a development version. This is controlled in Visual Studio.

 

Otherwise, we need more details to help you with this issue.

Let us know if there's still a problem.

Link to post

I understood and wrote it according to the path you told me, but there was an error when the file was terminated.

Instead, I solved it ↓

image.png.4b98bc0eff69c257d9ae16e2a2ac4f5f.png

Thank you !

  • Like 1
Link to post
  • silent changed the title to [SOLVED] C++ API / Nodes / WorldTrigger