Line Renderer Texture Scale#
Effects / Line Renderer / Line Renderer Texture Scale
Description#
Compares the Texture Scale property of Line Renderer component to another value
Parameters#
| Name | Description |
|---|---|
| Line Renderer | |
| Value |
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("Line Renderer Texture Scale")]
[Category("Effects/Line Renderer/Texture Scale")]
[Description("Compares the Texture Scale property of Line Renderer component to another value")]
[Image(typeof(IconLineRenderer), ColorTheme.Type.Blue, typeof(BadgeEye))]
[Keywords("Effect")]
[Parameter("Line Renderer")]
[Parameter("Value")]
[Serializable]
public class GenConditionVector2_LineRenderer_CheckTextureScale : Condition
{
[SerializeField] private GetGameObject m_LineRenderer = new GetGameObject(
new GenTypeGameObject_LineRenderer()
);
[SerializeField] private GetVector2 m_Value = new GetVector2();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Texture Scale");
return $"{this.m_LineRenderer} {member} = {this.m_Value}";
}
protected override bool Run(Args args)
{
LineRenderer component = this.m_LineRenderer.Get<LineRenderer>(args);
if (component == null) return false;
return component.textureScale == (Vector2) this.m_Value.Get(args);
}
}
}