Commit 52342af
committed
Implement unity:prefabKeepObject
Currently, using prefab imports nukes the SuperObject and
the SuperCustomProperties components. While custom properties are
broadcast, it may still be desirable to allow access to arbitrary custom
properties by name at runtime.
Add a new unity attributes, unity:prefabKeepObject that on import,
checks if set on the object, and if so, creates a copy of the
SuperObject and SuperCustomProperties onto the root node of the prefab.1 parent c0673e6 commit 52342af
File tree
3 files changed
+11
-0
lines changed- SuperTiled2Unity/Assets/SuperTiled2Unity/Scripts/Editor
- Importers
- docs/manual
3 files changed
+11
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
433 | 442 | | |
434 | 443 | | |
435 | 444 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments