Particle System Set Maximum Pre Mapped Buffer Counts#
Effects / Particle System / Particle System Set Maximum Pre Mapped Buffer Counts
Description#
Executes the Set Maximum Pre Mapped Buffer Counts static method of the Particle System class
Parameters#
| Name | Description |
|---|---|
| Vertex Buffers Count | |
| Index Buffers Count |
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 Set Maximum Pre Mapped Buffer Counts")]
[Category("Effects/Particle System/Set Maximum Pre Mapped Buffer Counts")]
[Description("Executes the Set Maximum Pre Mapped Buffer Counts static method of the Particle System class")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
[Keywords("Effect")]
[Parameter("Vertex Buffers Count")]
[Parameter("Index Buffers Count")]
[Serializable]
public class GenInstructionParticleSystem_SetMaximumPreMappedBufferCounts_2 : Instruction
{
[SerializeField] private GetInteger m_VertexBuffersCount = new GetInteger();
[SerializeField] private GetInteger m_IndexBuffersCount = new GetInteger();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Particle System");
string method = TextUtils.ThemeAsKeyword("Set Maximum Pre Mapped Buffer Counts");
return $"{className} {method} ({this.m_VertexBuffersCount}, {this.m_IndexBuffersCount})";
}
protected override Awaitable Run(Args args)
{
ParticleSystem.SetMaximumPreMappedBufferCounts(
(int) this.m_VertexBuffersCount.Get(args),
(int) this.m_IndexBuffersCount.Get(args)
);
return Done;
}
}
}