-
-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
Feat/more additions
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace VRTK.Examples | ||
{ | ||
using Malimbe.PropertySerializationAttribute; | ||
using Malimbe.XmlDocumentationAttribute; | ||
using UnityEngine; | ||
|
||
public class ParticleChanger : MonoBehaviour | ||
{ | ||
/// <summary> | ||
/// The <see cref="ParticleSystem"/> to control. | ||
/// </summary> | ||
[Serialized] | ||
[field: DocumentedByXml] | ||
public ParticleSystem Particles { get; set; } | ||
|
||
public virtual void UpdateEmissionRate(float rate) | ||
{ | ||
ParticleSystem.EmissionModule emissions = Particles.emission; | ||
emissions.rateOverTime = rate; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.