言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

ParticleSystem

Namespace: UnityEngine

/

Inherits from: Component

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

パーティクル「シュリケン」(Shuriken)を扱うスクリプトインタフェース

See Also: Particle.

Variables

duration 秒単位のパーティクルシステムの持続時間 (Read Only)
emissionRate 放出のレート
enableEmission falseにすると、パーティクルシステムはパーティクルを放出しなくなります
gravityModifier Physics.gravity変数で定義されている重力の大きさ
isPaused パーティクルシステムが現在一時停止しているかどうか
isPlaying パーティクルシステムが現在再生中しているかどうか
isStopped パーティクルシステムが現在停止しているかどうか
loop パーティクルシステムがループするかどうか
maxParticles 放出するパーティクルの最大数
particleCount 現在のパーティクル数 (Read Only)
playbackSpeed パーティクルシステムの再生速度。1が通常の速度です
playOnAwake trueの場合、パーティクルシステムは起動時に自動的に再生します
randomSeed パーティクルシステム エミッションに使用されるランダムシード。もし0にした場合、Awake のときにランダムな値が割り当てられます
safeCollisionEventSize ParticleSystem.GetCollisionEventsで使用する安全な配列の長さ
simulationSpace これによりパーティクルをシミュレーションする空間を選択します。ワールド座標またはローカル座標とすることが出来ます
startColor 放出される際のパーティクルの初期カラー
startDelay 秒単位のディレイでスタートします
startLifetime 秒単位でのパーティクル全部の合計寿命。曲線を利用している場合、曲線のスケールとしての役割を果たします。この値はパーティクルシステムによってパーティクルが作成された時に設定されます
startRotation 放出される際のパーティクルの初期角度。曲線を使用した場合、この値は曲線上でスケールの役割を果たします
startSize 放出される際のパーティクルの初期サイズ。曲線を使用した場合、この値は曲線上でスケールの役割を果たします
startSpeed 放出される際のパーティクルの初期速度。曲線を使用した場合、この値は曲線上でスケールの役割を果たします
time 秒単位での再生位置

Functions

Clear パーティクルシステムのパーティクルをすべて削除します
Emit 設定した数のパーティクルをすぐに放出します
GetCollisionEvents ゲームオブジェクトのパーティクル衝突イベントを取得します。配列に書き込まれたイベントの数を返します。
GetParticles パーティクルを取得します。渡された配列にパーティクルを書き込みパーティクルの数を返します。
IsAlive パーティクルを放出している(生きている)かどうか。(またはそれ以上生成するか)
Pause パーティクルシステムの再生を一時停止します。
Play パーティクルシステムを再生します
SetParticles パーティクルの配列と描画する数を設定します。 size は設定されるパーティクルの数です
Simulate Fastforwards the particle system by simulating particles over given period of time, then pauses it.
Stop パーティクルシステムを停止します

Inherited members

Variables

animation GameObjectにアタッチされたAnimation (アタッチされていない場合はnull)
audio GameObjectにアタッチされたAudioSource (アタッチされていない場合はnull)
camera GameObjectにアタッチされたCamera (アタッチされていない場合はnull)
collider GameObjectにアタッチされたCollider (アタッチされていない場合はnull)
collider2D GameObjectにアタッチされたCollider2D
constantForce GameObjectにアタッチされたConstantForce (アタッチされていない場合はnull)
gameObject このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。
guiText GameObjectにアタッチされたGUIText (アタッチされていない場合はnull)
guiTexture GameObjectにアタッチされたGUITexture (アタッチされていない場合はnull)
hingeJoint GameObjectにアタッチされたHingeJoint (アタッチされていない場合はnull)
light GameObjectにアタッチされたLight (アタッチされていない場合はnull)
networkView GameObjectにアタッチされたNetworkView (アタッチされていない場合はnull)
particleEmitter GameObjectにアタッチされたParticleEmitter (アタッチされていない場合はnull)
particleSystem GameObjectにアタッチされたParticleSystem (アタッチされていない場合はnull)
renderer GameObjectにアタッチされたRenderer (アタッチされていない場合はnull)
rigidbody GameObjectにアタッチされたRigidbody (アタッチされていない場合はnull)
rigidbody2D GameObjectにアタッチされたRigidbody2D
tag ゲームオブジェクトのタグ
transform GameObjectにアタッチされたTransform (アタッチされていない場合はnull)
hideFlags オブジェクトは非表示、シーンに保存、ユーザーが編集可能などを行うかどうか
name オブジェクト名

Functions

BroadcastMessage ゲームオブジェクトまたは子オブジェクトにある すべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。
CompareTag Is this game object tagged with /tag/?
GetComponent Returns the component of Type type if the game object has one attached, null if it doesn't.
GetComponentInChildren Returns the component of Type type in the GameObject or any of its children using depth first search.
GetComponentInParent Returns the component of Type type in the GameObject or any of its parents.
GetComponents Returns all components of Type type in the GameObject.
GetComponentsInChildren Returns all components of Type type in the GameObject or any of its children.
GetComponentsInParent Returns all components of Type type in the GameObject or any of its parents.
SendMessage Calls the method named methodName on every MonoBehaviour in this game object.
SendMessageUpwards Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.
GetInstanceID Returns the instance id of the object.
ToString ゲームオブジェクトの名前を返します

Static Functions

Destroy ゲームオブジェクト、コンポーネントやアセットを削除します
DestroyImmediate 直ちにオブジェクトを破壊する。ですが、Destroy関数の方を使うことを推奨します
DontDestroyOnLoad 新しいシーンを読み込んでもオブジェクトが自動で破壊されないように設定します
FindObjectOfType タイプから最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfType タイプから見つけた全てのアクティブのオブジェクト配列を返します
Instantiate original のオブジェクトをクローンします

Operators

bool オブジェクトが存在するかどうか
operator != 二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator == 二つのオブジェクトが同じオブジェクトを参照しているか比較します