RemoteTechnologiesGroup / RemoteTech

Community developed continuation of Kerbal Space Program's RemoteTech mod.
http://remotetechnologiesgroup.github.io/RemoteTech
GNU General Public License v2.0
230 stars 103 forks source link

Creating materials from string no longer supported warning. #755

Closed PiezPiedPy closed 5 years ago

PiezPiedPy commented 5 years ago

One thing I have noticed is when changing scenes into the Tracking Station I get warnings that materials can not be set with a string as that feature is no longer supported.

[ERR 11:25:56.229] Trying to create a material from string - this is no longer supported.
    UnityEngine.Material:.ctor(String)
    RemoteTech.UI.NetworkLine:Awake()
    UnityEngine.GameObject:.ctor(String, Type[])
    RemoteTech.UI.NetworkLine:Instantiate()
    RemoteTech.NetworkRenderer:UpdateNetworkEdges()
    RemoteTech.NetworkRenderer:OnPreCull()
KSP-TaxiService commented 5 years ago

Yup, this is a known issue due to KSP migration from Unity 4 to Unity 5 (See current #693). A fix requires a external shader file to be created and loaded into KSP.