Hi,
I'm trying to programmatically get model info in lua. I have imported a simple cube model with the same texture on all 6 faces.
In the model editor it is shown as having a single surface, index 0 with the expected material.
However, when I try to access this from code I can't find the surfaces.
In a script attached to the entity I've tried:
local surfaces = self.entity:CountSurfaces()
and
local model = tolua.cast(self.entity, "Model")
local surfaces = model:CountSurfaces()
All of which show indicate there are zero surfaces.
I've scoured the docum