如何使用Vectrosity在特定持续时间内绘制线条

时间:2018-01-23 15:42:03

标签: unity3d

我使用Unity线条绘制资产Vectrosity创建了一条线。请参阅下面的代码。

self.abrirconversa = function(useridfrom, name, useronline){
    $rootScope.chatdis = true;

    chatservice.conversachat(useridfrom).then(function(d) {
        self.mensagens = d;

        for(var i = 0; i < self.mensagens.length; i++){
            //converte datas em Javascript
            if(self.mensagens[i].timecreated != null && self.mensagens[i].timecreated != '12/31/1969 21:00'){
                self.mensagens[i].timecreated = new Date(self.mensagens[i].timecreated);
            }
        }

        self.idchat = useridfrom;
        self.namechat = name;
        self.useronline = useronline;

        $('.chat-history').animate({scrollTop: $('.chat-history')[0].scrollHeight}, 0);

    }, function(errResponse){
        console.error('Error while fetching Currencies');
    });
};

如何在一段时间内绘制/动画此线?

0 个答案:

没有答案