twitch-chat-emotes-threejs

0.4.3 • Public • Published

twitch-chat-emotes-threejs

A Three.JS specific variant of the twitch-chat-emotes package.

Example repository

import TwitchChat from 'twitch-chat-emotes-threejs';

const ChatInstance = new TwitchChat({
	// If using planes, consider using MeshBasicMaterial instead of SpriteMaterial
	materialType: THREE.SpriteMaterial,

	// Passed to material options
	materialOptions: {
		transparent: true,
	},

	materialHook: material => console.log, // receives unique emote materials on creation
	textureHook: texture => console.log, // receives unique emote textures on creation

	channels,
	maximumEmoteLimit: 3,
});

ChatInstance.listen((emotes) => { //receives an array of "emote" objects, THREE.js material is within emotes[i].material
	console.log(emotes);
});
``

/twitch-chat-emotes-threejs/

    Package Sidebar

    Install

    npm i twitch-chat-emotes-threejs

    Weekly Downloads

    1

    Version

    0.4.3

    License

    ISC

    Unpacked Size

    14.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • calebbabin