Esempio n. 1
0
    private void CreateDbgRenderMesh()
    {
        Shader   shader = Shader.Find("Diffuse");
        Material m      = new Material(shader);

        m_goDbg       = m_dbgRenderMesh.CreateGameObject("DbgRenderMesh", m);
        m_goDbg.layer = LayerMask.NameToLayer("Ground");
        m_dbgRenderMesh.Clear();
    }
Esempio n. 2
0
    void Start()
    {
        if (Debugrendermeshmaterial == null)
        {
            Shader vertexColor = Shader.Find("Mobile/Particles/Alpha Blended");
            Debugrendermeshmaterial = new Material(vertexColor);
        }

        Dbgrendermesh.CreateGameObject("Dbg Render Mesh", Debugrendermeshmaterial);
    }
Esempio n. 3
0
 void Start()
 {
     // if (Debugrendermeshmaterial == null)
     // {
     //     Shader vertexColor = Shader.Find("");
     //     Debugrendermeshmaterial = new Material(vertexColor);
     // }
     //
     Dbgrendermesh.CreateGameObject("Dbg Render Mesh", null);
 }
Esempio n. 4
0
    public void Start()
    {
        if (m_DebugRenderMeshMaterial == null)
        {
            Shader vertexColor = Shader.Find("Custom/VertexColorShader");
            m_DebugRenderMeshMaterial = new Material(vertexColor);
        }

        m_DbgRenderMesh.CreateGameObject("Dbg Render Mesh", m_DebugRenderMeshMaterial);
        m_DbgPathRenderer.CreateGameObject("Dbg Path Renderer Mesh", m_DebugRenderMeshMaterial);

        m_DbgRenderMesh.SetLabelTemplate(m_3DTextTemplate);
        m_DbgPathRenderer.SetLabelTemplate(m_3DTextTemplate);
    }