- Home /
Question by
MaT227 · May 29, 2014 at 09:35 AM ·
editormaterialserialization
Serialize Texture3D
Hi,
I am creating Texture3D using a script as described in the documentation and I assign it on a material.
For the moment the texture is not saved and each time I launch the Editor, I need to create the texture again, I think that it will be the same if I make a build.
I don't think that calling the Texture3D create function on start is a good idea because of performance.
How can I serialize it ? Or maybe is it possible to create an asset with this Texture3D ?
Comment
Best Answer
Answer by MaT227 · May 29, 2014 at 08:14 PM
I just use the AssetDatabase.CreateAsset with a .asset file extension. It works well.
But the Texture3D property on the component doesn't accept the .asset asset though.