This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the gameObject.transform.position for example, in my case a empty gameObject positioned over the character | |
Vector2 gameObjectToScreenPosition = Camera.main.WorldToScreenPoint(position); | |
Vector2 screenToUIToolkitPosition = RuntimePanelUtils.ScreenToPanel(_root.panel, gameObjectToScreenPosition); | |
Label combatText = new Label(text); | |
// set the label's text | |
combatText.text = text; | |
// set the label's color | |
combatText.style.color = color; | |
// Absolute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "CustomRenderTexture/FOWLightNoSmoothing" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_Tex("InputTex", 2D) = "white" {} | |
} | |
SubShader | |
{ |