示例#1
0
    public static string GetJ3DRenderer(Material m, Transform t)
    {
        int i = t.gameObject.GetComponent <Renderer>().lightmapIndex;

        if (t.gameObject.isStatic && i < 255 && i > -1)
        {
            return("Lightmapped");
        }

        /*
         * if(m.shader.name.IndexOf("Self-Illumin") > -1 || m.shader.name.IndexOf("Unlit") > -1) return "diffuse";
         * if(m.shader.name == "VertexLit") return "diffuse";
         */

        return(NamesUtil.CleanLc(m.shader.name));
    }
示例#2
0
 public AnimationObject(string n)
 {
     Name       = NamesUtil.CleanLc(n);
     Properties = new List <AnimationProperty>();
 }