Skip to main content

All Questions

Tagged with
0 votes
1 answer
98 views

How Can I programatically identify a Material in Unity?

I have some gameobjects that in some conditions have an additional material added to them programatically at runtime. I then later want to be able to remove that specific material. How can I identify ...
Michael's user avatar
  • 103
0 votes
0 answers
486 views

Rendering Mode transparent is not applying in webgl build

I am using this method to convert opaque rendering mode to transparent. ...
Muhammad Faizan Khan's user avatar
0 votes
1 answer
1k views

Unity run-time creating material has performance impact?

Just found creating a material in a script for the first time would have performance impact. (Using Unity 5.6.5f) A very simple script for testing is to create a game object with MeshRenderer in ...
Arxz's user avatar
  • 95
3 votes
1 answer
866 views

Show Unity Line Renderer as 3d cable or wire

I am dynamically making a line renderer which is pull by the character to show that a character is pulling a wire. The line renderer working fine but unfortunately its display is not according to my ...
Muhammad Faizan Khan's user avatar
3 votes
2 answers
1k views

Using different shaders based on desktop or mobile?

Most of my assets use the Unity standard shader. It looks and runs fine on Desktop, but on mobile the performance isn't good. I assume the solution is to switch to one of the mobile friendly vertex-...
Andrio's user avatar
  • 241
1 vote
1 answer
2k views

Change Shader on This Material Via Code?

How do I change this material to have the Toon/ Lit Outline shader via code at the Start of the scene? Here is my code that I have as of now, that does not work: ...
Stephen George's user avatar
1 vote
2 answers
6k views

Unity how to change material properties at runtime

I'm working on a unity game where I want to change the color of a material from within a script. The material applies to a line renderer. I currently have the following script: ...
Thijser's user avatar
  • 955
4 votes
1 answer
3k views

Material System

I'm designing Material/Shader System (target API DX10+ and may be OpenGL3+, now only DX10). I know, there was a lot of topics about this, but i can't find what i need. I don't want to do some kind of ...
Towelie's user avatar
  • 91