![]() ![]() Public void OnInputDown(InputEventData eventData)Ĭ = Color.blue ĬursorRendererOne.GetPropertyBlock(_propBlock) _propBlock = new MaterialPropertyBlock() Private MaterialPropertyBlock _propBlock Edit- public SkinnedMeshRenderer cursorRendererOne, cursorRendererTwo, cursorRendererThree, cursorRendererFour Changing it on runtime works only for 3 of 4 parts.´ The only thing that works is before hitting play I can change the color, this will change the color of the whole cursor. In all three cases I got the same result. Changing the color by getting the component SkinnedMeshRenderer.Changing the color by referencing to cursormaterial.Mesh_top is the only part that does not change the color and I dont know why.Īll 4 parts use the same material, named " cursormaterial". I tried to change the color via script on runtime of the cursor and it worked to 75%: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |