0.4.3 • Published 5 months ago

twitch-chat-emotes-threejs v0.4.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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);
});
``
0.4.3

5 months ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.9

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago