-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not use editor export json file #185
Comments
The second parameter for |
How to get textures or urls to textures , I met the same question, and I can not understand how to get the second parameter? |
Because texture usage and urls are specific to your build process and hosting, there is no way for the editor to give you a url - you have to generate and provide that yourself. |
Incredibly unhelpful answer. This particle library has to be one of the worst documented projects I've ever tried to use. Good lord. Anyway, @GuanTina to answer your actual question instead of acting like you're an idiot:
|
json is download from editor, but occur error:
Cannot use 'in' operator to search for 'framerate' in undefined
pixi version: 6.5.4
particle-emitter version: 5.0.7
`
var json={
"alpha": {
"start": 1,
"end": 0
},
"scale": {
"start": 0.1,
"end": 0.01,
"minimumScaleMultiplier": 1
},
"color": {
"start": "#e4f9ff",
"end": "#3fcbff"
},
"speed": {
"start": 200,
"end": 50,
"minimumSpeedMultiplier": 1
},
"acceleration": {
"x": 0,
"y": 0
},
"maxSpeed": 0,
"startRotation": {
"min": 0,
"max": 360
},
"noRotation": false,
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.2,
"max": 0.8
},
"blendMode": "normal",
"frequency": 0.001,
"emitterLifetime": -1,
"maxParticles": 500,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "circle",
"spawnCircle": {
"x": 0,
"y": 0,
"r": 0
}
}
var emitterContainer = new PIXI.Container()
var emitter = new particles.Emitter(
emitterContainer,
particles.upgradeConfig(json, [])
);
app.stage.addChild(emitterContainer)
// Calculate the current time
var elapsed = Date.now();
// Update function every frame
var update = function () {
};
// Start emitting
emitter.emit = true;
// Start the update
update();
`
The text was updated successfully, but these errors were encountered: