Package apple.spritekit
Class SKEmitterNode
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.spritekit.SKNode
-
- apple.spritekit.SKEmitterNode
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject,UIFocusEnvironment,UIFocusItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring
public class SKEmitterNode extends SKNode
An emitter of particle sprites.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.spritekit.SKNode
SKNode.Block_enumerateChildNodesWithNameUsingBlock, SKNode.Block_runActionCompletion
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSKEmitterNode(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidadvanceSimulationTime(double sec)The particle simulation is stepped automatically each frame when present in the scene.static SKEmitterNodealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)NSDictionary<java.lang.String,? extends SKAttributeValue>attributeValues()Optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()doubleemissionAngle()The angle at which to emit each new particle, in radians.doubleemissionAngleRange()The random variance about the angle at which to emit each new particle, in radians.intfieldBitMask()Defines what logical 'categories' of fields this particles emitted respond to.static longhash_static()SKEmitterNodeinit()SKEmitterNodeinitWithCoder(NSCoder aDecoder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static SKEmitterNodenode()static SKEmitterNodenodeWithFileNamed(java.lang.String filename)static SKEmitterNodenodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename, NSSet<? extends org.moe.natj.objc.Class> classes, org.moe.natj.general.ptr.Ptr<NSError> error)longnumParticlesToEmit()The number of particles that will be emitted.static NSArray<? extends GKPolygonObstacle>obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes)static NSArray<? extends GKPolygonObstacle>obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes)static NSArray<? extends GKPolygonObstacle>obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites, float accuracy)SKActionparticleAction()Specifies an action executed by new particles.doubleparticleAlpha()The starting alpha for each particle.doubleparticleAlphaRange()The random variance about the starting alpha for each particle.SKKeyframeSequenceparticleAlphaSequence()doubleparticleAlphaSpeed()The rate at which to modify the alpha for each particle.doubleparticleBirthRate()The rate at which new particles are generated, in particles per second.longparticleBlendMode()The blend mode for each particle.UIColorparticleColor()The starting color for each particle.doubleparticleColorAlphaRange()doubleparticleColorAlphaSpeed()doubleparticleColorBlendFactor()The starting color blend for each particle.doubleparticleColorBlendFactorRange()The random variance about the starting color blend for each particle.SKKeyframeSequenceparticleColorBlendFactorSequence()doubleparticleColorBlendFactorSpeed()The rate at which to modify the color blend for each particle.doubleparticleColorBlueRange()doubleparticleColorBlueSpeed()doubleparticleColorGreenRange()doubleparticleColorGreenSpeed()doubleparticleColorRedRange()The random variance about each color component for each particle.doubleparticleColorRedSpeed()The rate at which to modify each color component for each particle (per second).SKKeyframeSequenceparticleColorSequence()doubleparticleLifetime()The lifetime of each particle, in seconds.doubleparticleLifetimeRange()The random variance about the lifetime of each particle, in seconds.CGPointparticlePosition()The starting position for each particle in the emitter's coordinate space.CGVectorparticlePositionRange()The random variance about the starting position for each particle in the emitter's coordinate space.longparticleRenderOrder()The order in which particles will be rendered.doubleparticleRotation()The starting z-rotation for each particle.doubleparticleRotationRange()The random variance about the starting z-rotation for each particle.doubleparticleRotationSpeed()The rate at which to modify the z-rotation for each particle.doubleparticleScale()The starting scale for each particle.doubleparticleScaleRange()The random variance about the starting scale for each particle.SKKeyframeSequenceparticleScaleSequence()doubleparticleScaleSpeed()The rate at which to modify the scale for each particle.CGSizeparticleSize()The starting size for each particle.doubleparticleSpeed()The starting speed for each particle along its emission vector.doubleparticleSpeedRange()The random variance about the starting speed for each particle along its emission vector.SKTextureparticleTexture()The texture to be used for the particles.doubleparticleZPosition()The starting z-position for each particle.doubleparticleZPositionRange()Deprecated.doubleparticleZPositionSpeed()Deprecated.voidresetSimulation()Removes all particles and restarts the emitterstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAttributeValues(NSDictionary<java.lang.String,? extends SKAttributeValue> value)Optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders.voidsetEmissionAngle(double value)The angle at which to emit each new particle, in radians.voidsetEmissionAngleRange(double value)The random variance about the angle at which to emit each new particle, in radians.voidsetFieldBitMask(int value)Defines what logical 'categories' of fields this particles emitted respond to.voidsetNumParticlesToEmit(long value)The number of particles that will be emitted.voidsetParticleAction(SKAction value)Specifies an action executed by new particles.voidsetParticleAlpha(double value)The starting alpha for each particle.voidsetParticleAlphaRange(double value)The random variance about the starting alpha for each particle.voidsetParticleAlphaSequence(SKKeyframeSequence value)voidsetParticleAlphaSpeed(double value)The rate at which to modify the alpha for each particle.voidsetParticleBirthRate(double value)The rate at which new particles are generated, in particles per second.voidsetParticleBlendMode(long value)The blend mode for each particle.voidsetParticleColor(UIColor value)The starting color for each particle.voidsetParticleColorAlphaRange(double value)voidsetParticleColorAlphaSpeed(double value)voidsetParticleColorBlendFactor(double value)The starting color blend for each particle.voidsetParticleColorBlendFactorRange(double value)The random variance about the starting color blend for each particle.voidsetParticleColorBlendFactorSequence(SKKeyframeSequence value)voidsetParticleColorBlendFactorSpeed(double value)The rate at which to modify the color blend for each particle.voidsetParticleColorBlueRange(double value)voidsetParticleColorBlueSpeed(double value)voidsetParticleColorGreenRange(double value)voidsetParticleColorGreenSpeed(double value)voidsetParticleColorRedRange(double value)The random variance about each color component for each particle.voidsetParticleColorRedSpeed(double value)The rate at which to modify each color component for each particle (per second).voidsetParticleColorSequence(SKKeyframeSequence value)voidsetParticleLifetime(double value)The lifetime of each particle, in seconds.voidsetParticleLifetimeRange(double value)The random variance about the lifetime of each particle, in seconds.voidsetParticlePosition(CGPoint value)The starting position for each particle in the emitter's coordinate space.voidsetParticlePositionRange(CGVector value)The random variance about the starting position for each particle in the emitter's coordinate space.voidsetParticleRenderOrder(long value)The order in which particles will be rendered.voidsetParticleRotation(double value)The starting z-rotation for each particle.voidsetParticleRotationRange(double value)The random variance about the starting z-rotation for each particle.voidsetParticleRotationSpeed(double value)The rate at which to modify the z-rotation for each particle.voidsetParticleScale(double value)The starting scale for each particle.voidsetParticleScaleRange(double value)The random variance about the starting scale for each particle.voidsetParticleScaleSequence(SKKeyframeSequence value)voidsetParticleScaleSpeed(double value)The rate at which to modify the scale for each particle.voidsetParticleSize(CGSize value)The starting size for each particle.voidsetParticleSpeed(double value)The starting speed for each particle along its emission vector.voidsetParticleSpeedRange(double value)The random variance about the starting speed for each particle along its emission vector.voidsetParticleTexture(SKTexture value)The texture to be used for the particles.voidsetParticleZPosition(double value)The starting z-position for each particle.voidsetParticleZPositionRange(double value)Deprecated.voidsetParticleZPositionSpeed(double value)Deprecated.voidsetShader(SKShader value)voidsetTargetNode(SKNode value)Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property.voidsetTargetNode_unsafe(SKNode value)Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property.voidsetValueForAttributeNamed(SKAttributeValue value, java.lang.String key)static voidsetVersion_static(long aVersion)voidsetXAcceleration(double value)The acceleration to apply to each particles velocity.voidsetYAcceleration(double value)SKShadershader()static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()SKNodetargetNode()Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property.SKAttributeValuevalueForAttributeNamed(java.lang.String key)static longversion_static()doublexAcceleration()The acceleration to apply to each particles velocity.doubleyAcceleration()-
Methods inherited from class apple.spritekit.SKNode
actionForKey, addChild, alpha, calculateAccumulatedFrame, canBecomeFocused, childNodeWithName, children, constraints, containsPoint, convertPointFromNode, convertPointToNode, copyWithZone, didHintFocusMovement, didUpdateFocusInContextWithAnimationCoordinator, encodeWithCoder, entity, enumerateChildNodesWithNameUsingBlock, focusBehavior, focusGroupIdentifier, focusItemContainer, frame, hasActions, inParentHierarchy, insertChildAtIndex, intersectsNode, isEqualToNode, isHidden, isPaused, isUserInteractionEnabled, moveToParent, name, nodeAtPoint, nodesAtPoint, objectForKeyedSubscript, parent, parentFocusEnvironment, physicsBody, position, preferredFocusedView, preferredFocusEnvironments, reachConstraints, removeActionForKey, removeAllActions, removeAllChildren, removeChildrenInArray, removeFromParent, runAction, runActionCompletion, runActionWithKey, scene, setAlpha, setConstraints, setEntity, setEntity_unsafe, setFocusBehavior, setHidden, setName, setNeedsFocusUpdate, setPaused, setPhysicsBody, setPosition, setReachConstraints, setScale, setSpeed, setUserData, setUserInteractionEnabled, setXScale, setYScale, setZPosition, setZRotation, shouldUpdateFocusInContext, speed, updateFocusIfNeeded, userData, xScale, yScale, zPosition, zRotation
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SKEmitterNode alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
node
public static SKEmitterNode node()
-
nodeWithFileNamed
public static SKEmitterNode nodeWithFileNamed(java.lang.String filename)
-
obstaclesFromNodeBounds
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes)
-
obstaclesFromNodePhysicsBodies
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes)
-
obstaclesFromSpriteTexturesAccuracy
public static NSArray<? extends GKPolygonObstacle> obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites, float accuracy)
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
advanceSimulationTime
public void advanceSimulationTime(double sec)
The particle simulation is stepped automatically each frame when present in the scene. This allows the user to manually advance the simulation by a fixed amount of time. Useful for pre-populating particles before adding them to the scene.
-
attributeValues
public NSDictionary<java.lang.String,? extends SKAttributeValue> attributeValues()
Optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders.- Overrides:
attributeValuesin classSKNode
-
emissionAngle
public double emissionAngle()
The angle at which to emit each new particle, in radians. Defaults to 0.0.
-
emissionAngleRange
public double emissionAngleRange()
The random variance about the angle at which to emit each new particle, in radians. Defaults to 0.0.
-
fieldBitMask
public int fieldBitMask()
Defines what logical 'categories' of fields this particles emitted respond to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
-
init
public SKEmitterNode init()
-
initWithCoder
public SKEmitterNode initWithCoder(NSCoder aDecoder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classSKNode
-
numParticlesToEmit
public long numParticlesToEmit()
The number of particles that will be emitted. If set to 0, there is no limit. Defaults to 0.
-
particleAction
public SKAction particleAction()
Specifies an action executed by new particles.
-
particleAlpha
public double particleAlpha()
The starting alpha for each particle. Defaults to 1.0.
-
particleAlphaRange
public double particleAlphaRange()
The random variance about the starting alpha for each particle. Defaults to 1.0.
-
particleAlphaSequence
public SKKeyframeSequence particleAlphaSequence()
-
particleAlphaSpeed
public double particleAlphaSpeed()
The rate at which to modify the alpha for each particle. Defaults to 1.0.
-
particleBirthRate
public double particleBirthRate()
The rate at which new particles are generated, in particles per second. Defaults to 0.0.
-
particleBlendMode
public long particleBlendMode()
The blend mode for each particle. Defaults to SKBlendModeAlpha.
-
particleColor
public UIColor particleColor()
The starting color for each particle. Defaults to clear.
-
particleColorAlphaRange
public double particleColorAlphaRange()
-
particleColorAlphaSpeed
public double particleColorAlphaSpeed()
-
particleColorBlendFactor
public double particleColorBlendFactor()
The starting color blend for each particle. Behaves the same as SKSpriteNode. Defaults to 0.0.
-
particleColorBlendFactorRange
public double particleColorBlendFactorRange()
The random variance about the starting color blend for each particle. Defaults to 0.0.
-
particleColorBlendFactorSequence
public SKKeyframeSequence particleColorBlendFactorSequence()
-
particleColorBlendFactorSpeed
public double particleColorBlendFactorSpeed()
The rate at which to modify the color blend for each particle. Defaults to 0.0.
-
particleColorBlueRange
public double particleColorBlueRange()
-
particleColorBlueSpeed
public double particleColorBlueSpeed()
-
particleColorGreenRange
public double particleColorGreenRange()
-
particleColorGreenSpeed
public double particleColorGreenSpeed()
-
particleColorRedRange
public double particleColorRedRange()
The random variance about each color component for each particle. Defaults to 0.0.
-
particleColorRedSpeed
public double particleColorRedSpeed()
The rate at which to modify each color component for each particle (per second).
-
particleColorSequence
public SKKeyframeSequence particleColorSequence()
-
particleLifetime
public double particleLifetime()
The lifetime of each particle, in seconds. Defaults to 0.0.
-
particleLifetimeRange
public double particleLifetimeRange()
The random variance about the lifetime of each particle, in seconds. Defaults to 0.0.
-
particlePosition
public CGPoint particlePosition()
The starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
-
particlePositionRange
public CGVector particlePositionRange()
The random variance about the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
-
particleRenderOrder
public long particleRenderOrder()
The order in which particles will be rendered. Defaults to SKParticleRenderOrderOldestLast.
-
particleRotation
public double particleRotation()
The starting z-rotation for each particle. Defaults to 0.0.
-
particleRotationRange
public double particleRotationRange()
The random variance about the starting z-rotation for each particle. Defaults to 0.0.
-
particleRotationSpeed
public double particleRotationSpeed()
The rate at which to modify the z-rotation for each particle. Defaults to 0.0.
-
particleScale
public double particleScale()
The starting scale for each particle. Defaults to 1.0.
-
particleScaleRange
public double particleScaleRange()
The random variance about the starting scale for each particle. Defaults to 0.0.
-
particleScaleSequence
public SKKeyframeSequence particleScaleSequence()
-
particleScaleSpeed
public double particleScaleSpeed()
The rate at which to modify the scale for each particle. Defaults to 0.0.
-
particleSize
public CGSize particleSize()
The starting size for each particle. If set to CGSizeZero (the default) the particles will start at the size of the texture assigned to particleTexture. Note that particleScale and particleScaleRange will also have an effect on the effective size of each new particle.
-
particleSpeed
public double particleSpeed()
The starting speed for each particle along its emission vector. Defaults to 0.0.
-
particleSpeedRange
public double particleSpeedRange()
The random variance about the starting speed for each particle along its emission vector. Defaults to 0.0.
-
particleTexture
public SKTexture particleTexture()
The texture to be used for the particles.
-
particleZPosition
public double particleZPosition()
The starting z-position for each particle. Defaults to 0.0.
-
particleZPositionRange
@Deprecated public double particleZPositionRange()
Deprecated.The random variance about the starting z-position for each particle. Defaults to 0.0.
-
particleZPositionSpeed
@Deprecated public double particleZPositionSpeed()
Deprecated.The rate at which to modify the z-position for each particle. Defaults to 0.0.
-
resetSimulation
public void resetSimulation()
Removes all particles and restarts the emitter
-
setAttributeValues
public void setAttributeValues(NSDictionary<java.lang.String,? extends SKAttributeValue> value)
Optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders.- Overrides:
setAttributeValuesin classSKNode
-
setEmissionAngle
public void setEmissionAngle(double value)
The angle at which to emit each new particle, in radians. Defaults to 0.0.
-
setEmissionAngleRange
public void setEmissionAngleRange(double value)
The random variance about the angle at which to emit each new particle, in radians. Defaults to 0.0.
-
setFieldBitMask
public void setFieldBitMask(int value)
Defines what logical 'categories' of fields this particles emitted respond to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
-
setNumParticlesToEmit
public void setNumParticlesToEmit(long value)
The number of particles that will be emitted. If set to 0, there is no limit. Defaults to 0.
-
setParticleAction
public void setParticleAction(SKAction value)
Specifies an action executed by new particles.
-
setParticleAlpha
public void setParticleAlpha(double value)
The starting alpha for each particle. Defaults to 1.0.
-
setParticleAlphaRange
public void setParticleAlphaRange(double value)
The random variance about the starting alpha for each particle. Defaults to 1.0.
-
setParticleAlphaSequence
public void setParticleAlphaSequence(SKKeyframeSequence value)
-
setParticleAlphaSpeed
public void setParticleAlphaSpeed(double value)
The rate at which to modify the alpha for each particle. Defaults to 1.0.
-
setParticleBirthRate
public void setParticleBirthRate(double value)
The rate at which new particles are generated, in particles per second. Defaults to 0.0.
-
setParticleBlendMode
public void setParticleBlendMode(long value)
The blend mode for each particle. Defaults to SKBlendModeAlpha.
-
setParticleColor
public void setParticleColor(UIColor value)
The starting color for each particle. Defaults to clear.
-
setParticleColorAlphaRange
public void setParticleColorAlphaRange(double value)
-
setParticleColorAlphaSpeed
public void setParticleColorAlphaSpeed(double value)
-
setParticleColorBlendFactor
public void setParticleColorBlendFactor(double value)
The starting color blend for each particle. Behaves the same as SKSpriteNode. Defaults to 0.0.
-
setParticleColorBlendFactorRange
public void setParticleColorBlendFactorRange(double value)
The random variance about the starting color blend for each particle. Defaults to 0.0.
-
setParticleColorBlendFactorSequence
public void setParticleColorBlendFactorSequence(SKKeyframeSequence value)
-
setParticleColorBlendFactorSpeed
public void setParticleColorBlendFactorSpeed(double value)
The rate at which to modify the color blend for each particle. Defaults to 0.0.
-
setParticleColorBlueRange
public void setParticleColorBlueRange(double value)
-
setParticleColorBlueSpeed
public void setParticleColorBlueSpeed(double value)
-
setParticleColorGreenRange
public void setParticleColorGreenRange(double value)
-
setParticleColorGreenSpeed
public void setParticleColorGreenSpeed(double value)
-
setParticleColorRedRange
public void setParticleColorRedRange(double value)
The random variance about each color component for each particle. Defaults to 0.0.
-
setParticleColorRedSpeed
public void setParticleColorRedSpeed(double value)
The rate at which to modify each color component for each particle (per second).
-
setParticleColorSequence
public void setParticleColorSequence(SKKeyframeSequence value)
-
setParticleLifetime
public void setParticleLifetime(double value)
The lifetime of each particle, in seconds. Defaults to 0.0.
-
setParticleLifetimeRange
public void setParticleLifetimeRange(double value)
The random variance about the lifetime of each particle, in seconds. Defaults to 0.0.
-
setParticlePosition
public void setParticlePosition(CGPoint value)
The starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
-
setParticlePositionRange
public void setParticlePositionRange(CGVector value)
The random variance about the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
-
setParticleRenderOrder
public void setParticleRenderOrder(long value)
The order in which particles will be rendered. Defaults to SKParticleRenderOrderOldestLast.
-
setParticleRotation
public void setParticleRotation(double value)
The starting z-rotation for each particle. Defaults to 0.0.
-
setParticleRotationRange
public void setParticleRotationRange(double value)
The random variance about the starting z-rotation for each particle. Defaults to 0.0.
-
setParticleRotationSpeed
public void setParticleRotationSpeed(double value)
The rate at which to modify the z-rotation for each particle. Defaults to 0.0.
-
setParticleScale
public void setParticleScale(double value)
The starting scale for each particle. Defaults to 1.0.
-
setParticleScaleRange
public void setParticleScaleRange(double value)
The random variance about the starting scale for each particle. Defaults to 0.0.
-
setParticleScaleSequence
public void setParticleScaleSequence(SKKeyframeSequence value)
-
setParticleScaleSpeed
public void setParticleScaleSpeed(double value)
The rate at which to modify the scale for each particle. Defaults to 0.0.
-
setParticleSize
public void setParticleSize(CGSize value)
The starting size for each particle. If set to CGSizeZero (the default) the particles will start at the size of the texture assigned to particleTexture. Note that particleScale and particleScaleRange will also have an effect on the effective size of each new particle.
-
setParticleSpeed
public void setParticleSpeed(double value)
The starting speed for each particle along its emission vector. Defaults to 0.0.
-
setParticleSpeedRange
public void setParticleSpeedRange(double value)
The random variance about the starting speed for each particle along its emission vector. Defaults to 0.0.
-
setParticleTexture
public void setParticleTexture(SKTexture value)
The texture to be used for the particles.
-
setParticleZPosition
public void setParticleZPosition(double value)
The starting z-position for each particle. Defaults to 0.0.
-
setParticleZPositionRange
@Deprecated public void setParticleZPositionRange(double value)
Deprecated.The random variance about the starting z-position for each particle. Defaults to 0.0.
-
setParticleZPositionSpeed
@Deprecated public void setParticleZPositionSpeed(double value)
Deprecated.The rate at which to modify the z-position for each particle. Defaults to 0.0.
-
setShader
public void setShader(SKShader value)
-
setTargetNode_unsafe
public void setTargetNode_unsafe(SKNode value)
Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
-
setTargetNode
public void setTargetNode(SKNode value)
Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
-
setValueForAttributeNamed
public void setValueForAttributeNamed(SKAttributeValue value, java.lang.String key)
- Overrides:
setValueForAttributeNamedin classSKNode
-
setXAcceleration
public void setXAcceleration(double value)
The acceleration to apply to each particles velocity. Useful for simulating effects such as wind or gravity. Defaults to 0.0.
-
setYAcceleration
public void setYAcceleration(double value)
-
shader
public SKShader shader()
-
targetNode
public SKNode targetNode()
Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
-
valueForAttributeNamed
public SKAttributeValue valueForAttributeNamed(java.lang.String key)
- Overrides:
valueForAttributeNamedin classSKNode
-
xAcceleration
public double xAcceleration()
The acceleration to apply to each particles velocity. Useful for simulating effects such as wind or gravity. Defaults to 0.0.
-
yAcceleration
public double yAcceleration()
-
nodeWithFileNamedSecurelyWithClassesAndError
public static SKEmitterNode nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename, NSSet<? extends org.moe.natj.objc.Class> classes, org.moe.natj.general.ptr.Ptr<NSError> error)
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classSKNode
-
-