Expose Terrain Methods/Properties
tracked
P
Pint
It would be useful if we could get Terrain methods in Udon. Specifically, methods and properties in https://docs.unity3d.com/ScriptReference/TerrainData.html and https://docs.unity3d.com/ScriptReference/DetailPrototype.html .
Log In
Fax
Merged in a post:
Expose UnityEngine.Terrain to UDON
MisutaaAsriel
Currently
UnityEngine.Terrain
seems to have been overlooked when choosing which classes to or not to expose to UDON. Not only is it not exposed. it's not even listed in the class exposure tree as an unexposed class. This seems to suggest an oversight to me rather than an intentional omission.With
UnityEngine.Terrain
exposed, developers could alter their terrain and its textures for more dynamic behaviors.Kyrowo
It would be great if udon exposed terrains GetSplatMaterialPropertyBlock as well, since it's necessary to make runtime baked lightmap changes to the terrain.
Exposing this method would allow us to bake seperate lightmaps and have a working day/night cycle with awesome visual fidelity and performance for terrains.
As of right now, it's only possible to change baked lighting of Mesh Renderers.
This post was marked as
tracked
るーにゃ@xlwnya
Some terrain shaders (the ones sold in the assetstore) require textures in terrainData.
So, these methods are useful to make these shaders work in VRChat.
BocuD
I actually
really
need this feature, or at least lightmap scale / offset if thats possible.. Just bumping this with a comment