How to toggle on the “Lightmap Static” or any other static type on HDA?
Is it like add unity material to an attribute or something else? thanks.
How to set Lightmap Static
2141 4 0- EricSheng
- Member
- 159 posts
- Joined: Feb. 2018
- Offline
- bonsak
- Member
- 459 posts
- Joined: Oct. 2011
- Offline
- bonsak
- Member
- 459 posts
- Joined: Oct. 2011
- Offline
- EricSheng
- Member
- 159 posts
- Joined: Feb. 2018
- Offline
- seelan
- Member
- 571 posts
- Joined: May 2017
- Offline
We can't really support everything potential option in Unity's components via attributes. Instead, I recommend you add a way to call a custom script that can set that for you. See https://www.sidefx.com/docs/unity/_unity_scripts.html [www.sidefx.com]
The unity_script attribute will add the script component if it doesn't exist on output objects. And it will always call the function specified.
You can also try cook events: https://www.sidefx.com/docs/unity/_assets.html#Assets_AssetInspectorUI_Events [www.sidefx.com]
The unity_script attribute will add the script component if it doesn't exist on output objects. And it will always call the function specified.
You can also try cook events: https://www.sidefx.com/docs/unity/_assets.html#Assets_AssetInspectorUI_Events [www.sidefx.com]
-
- Quick Links