Пример #1
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);
    }