Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Add surface.GetMaterial() #2367

Open A1steaksa opened 7 months ago

A1steaksa commented 7 months ago

It would be nice to be able to retrieve the currently active material from the surface library in the way we can already get things like the active color.

A1steaksa commented 7 months ago

I should also mention that there are other setters in the surface library that don't have corresponding getters.

robotboy655 commented 7 months ago

Why?

A1steaksa commented 7 months ago

I want to make additions to the surface library that generate IMeshes, but without the ability to retrieve the settings of the surface library I can’t achieve the same “set once use multiple” functionality as the rest of the surface functions.

I want to have the same calling convention as the rest of the surface library for consistency’s sake