- Home /
Displaying metadata/user defined properties?
3ds max models have a property called User Defined Properties (visual enterprise author calls it MetaData). Is there a way to have unity display the values that are in this property or am i just going to have to create a text script for each item and re-enter the values? I tried googling and scripting reference but my search-fu must be weak :(
Answer by Bunny83 · May 22, 2017 at 04:38 PM
You have to use an AssetPostProcessor script that implements the OnPostprocessGameObjectWithUserProperties method. Unity will automatically call that method when a model with user properties is imported / reimported.
What you do with that meta data is up to you. Either your AssetPostProcessor does some modifications based on that meta data, or it might attach a MonoBehaviour component to the imported model and you copy the meta data into that script. That way you can "store" the metadata (or just a relevant portion) directly with the imported model for later use.
Your answer
Follow this Question
Related Questions
Creating surface or mesh from random points 1 Answer
how can you make a 3D model slowly become transparent? 2 Answers
Unity3D player moveforward stutter,Unity3D player stutter while doing running animation 0 Answers
How to reference a prefab to the script that doesn't exist in Hierarchy 0 Answers
Spawn Point Repeating 3 Answers