Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:toolworks:docs:apparatus:detail [2021/06/18 19:47] – [Detail] vladius | en:toolworks:docs:apparatus:detail [2022/01/05 10:59] (current) – поправил пункты jispar | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| If you need to change some of the Detail members, you can do it *directly* via members' | If you need to change some of the Detail members, you can do it *directly* via members' | ||
| - | As an optimization of some internal logic, Details can't really be removed from Subjectives. They can only be *disabled*. This is effectively the same thing as removal since [[en: | + | As an optimization of some internal logic, Details can't really be removed from Subjectives. They can only be *disabled*. This is effectively the same thing as removal since [[en: |
| ===== Creating Details ===== | ===== Creating Details ===== | ||
| Line 15: | Line 15: | ||
| In order to create a Detail visible in your C++ source code you have to do the following: | In order to create a Detail visible in your C++ source code you have to do the following: | ||
| - | - Open the main UE File menu and choose the "New C++ Class..." | + | |
| - In the opened window mark the "Show All Classes" | - In the opened window mark the "Show All Classes" | ||
| - Now you can select any of the base classes available including the Apparatus ones. Choose the Detail as a base class: {{ : | - Now you can select any of the base classes available including the Apparatus ones. Choose the Detail as a base class: {{ : | ||
| Line 35: | Line 35: | ||
| */ | */ | ||
| UCLASS() | UCLASS() | ||
| - | class ME_API | + | class MY_API |
| { | { | ||
| GENERATED_BODY() | GENERATED_BODY() | ||
| Line 48: | Line 48: | ||
| </ | </ | ||
| - | - Now you can add some data fields to the class as usually | + | - Now you can add some data fields to the class as usually, right in the C++ header:< |
| float X = 0; | float X = 0; | ||
| float Y = 0; | float Y = 0; | ||