Class SpriteRendererMaterialPropertyBlock
- Namespace
- CustomKnight
- Assembly
- CustomKnight.dll
Component that forcibly sets the MaterialPropertyBlock of the SpriteRenderer to a defined value every Update and LateUpdate
public class SpriteRendererMaterialPropertyBlock : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourSpriteRendererMaterialPropertyBlock
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.useGUILayoutBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectOfType<T>()Object.ToString()Object.nameObject.hideFlags
Fields
mpb
The MaterialPropertyBlock to set
public MaterialPropertyBlock mpb
Field Value
- MaterialPropertyBlock
sr
The SpriteRenderer to set the block to
public SpriteRenderer sr
Field Value
- SpriteRenderer
Methods
LateUpdate()
public void LateUpdate()
Update()
public void Update()