Particle System Allocate Custom Data Attribute#
Effects / Particle System / Particle System Allocate Custom Data Attribute
Description#
Executes the Allocate Custom Data Attribute method on the Particle System component
Parameters#
| Name | Description |
|---|---|
| Stream |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Particle System Allocate Custom Data Attribute")]
[Category("Effects/Particle System/Allocate Custom Data Attribute")]
[Description("Executes the Allocate Custom Data Attribute method on the Particle System component")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
[Keywords("Effect")]
[Parameter("Stream")]
[Serializable]
public class GenInstructionParticleSystem_AllocateCustomDataAttribute_1 : Instruction
{
[SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
new GenTypeGameObject_ParticleSystem()
);
[SerializeField] private ParticleSystemCustomData m_Stream = default;
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Allocate Custom Data Attribute");
return $"{this.m_ParticleSystem} {method} ({this.m_Stream})";
}
protected override Awaitable Run(Args args)
{
ParticleSystem component = this.m_ParticleSystem.Get<ParticleSystem>(args);
if (component == null) return Done;
component.AllocateCustomDataAttribute(
this.m_Stream
);
return Done;
}
}
}