Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Any chance to have MaterialPropertyBlock support SetBuffer() in 5.4 ?

Discussion in '5.4 Beta' started by joergzdarsky, Apr 2, 2016.

  1. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    I am always lurking for that into the current betas, but still no luck.

    With all the extensions in 5.4 it would be really really helpfull if MaterialPropertyBlock would support SetBuffer() somewhen in the future.
    Those who want to work with ComputeShaders and ComputeBuffers would benefit so much of that as otherwise setting ComputeBuffers to a material (which is really usefull!) to handover results from a ComputeShader breaks batching completely.

    Any chance that this will be done in 5.4? I guess implementation wise it shouldnt be much different as its likely only a reference handed over similar to SetTexture();
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Yes, soon(ish).
     
    joergzdarsky and m4d like this.
  3. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    :)

    Hi Aras, thank you for that! This good news really made my day!!
    Those who love to create procedural content will benefit so much of that. Great!
     
  4. joergzdarsky

    joergzdarsky

    Joined:
    Sep 25, 2013
    Posts:
    56
    Saw that today in the release-notes of the 5.4.14b

    Thanks a lot @Aras ! Will try that immediately.