InteractableThemeShaderUtils.GetPropertyBlock(GameObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the MaterialPropertyBlock from a renderer on a gameObject
public:
static UnityEngine::MaterialPropertyBlock ^ GetPropertyBlock(UnityEngine::GameObject ^ gameObject);
public static UnityEngine.MaterialPropertyBlock GetPropertyBlock (UnityEngine.GameObject gameObject);
static member GetPropertyBlock : UnityEngine.GameObject -> UnityEngine.MaterialPropertyBlock
Public Shared Function GetPropertyBlock (gameObject As GameObject) As MaterialPropertyBlock
Parameters
- gameObject
- UnityEngine.GameObject
Returns
UnityEngine.MaterialPropertyBlock