While the basic system of the InterAction Project is now working fine and bug free (as far as I can tell) and with A LOT of error preventing checks and feedback on them (no automated test for now, but this will come), I actually try to implement footsteps on terrain.
For normal meshes I have done a working solution with a custom FeetSoundMaterial.
I also found a way to get the dominant texture at the position of the terrain where the player (or any other moving entity) stands as an index.
BUT since I am using the experimental terrain tools, I was curious if I could use the enhanced layer system of the terrain tools package.
I drove deep into the source of the terrain tool packages, actually very interesting.
Would it not be cool if I just could enhance the scriptables Layer and add there my footstep audio files as list ? Then I just would need to retrieve the layer (not the TerrainLayer, that class is a sealed object, so I sadly can not make a derived class from it, which would be the coolest way.)
But I would have to change a lot in the editor implementation of the terrain tools to be able to use my own Layer scriptables. So it seems I have to go the boring way and just make another class which combines the TerrainLayer index with the fitting footsteps. Which also means I have to keep track of the indexes and changes there by hand, which is very boring.