Image Fill Clockwise#
UI / Graphic / Image / Image Fill Clockwise
Can Read
Can Write
Description#
The Fill Clockwise property of the Image component
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;
using UnityEngine.UI;
namespace VisualScript.Runtime
{
[Get]
[Set]
[Title("Image Fill Clockwise")]
[Category("UI/Graphic/Image/Fill Clockwise")]
[Description("The Fill Clockwise property of the Image component")]
[Image(typeof(IconUIImage), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeBool_Image_FillClockwise : TypeBool
{
[SerializeField] private GetGameObject m_Image = new GetGameObject(
new GenTypeGameObject_Image()
);
public override bool GetPreview(GameObject source)
{
GameObject instance = this.m_Image.GetPreview(source);
if (instance == null) return default;
Image component = instance.GetComponent<Image>();
return component != null ? component.fillClockwise : default;
}
public override bool Get(Args args)
{
Image instance = this.m_Image.Get<Image>(args);
return instance != null
? instance.fillClockwise
: default;
}
public override void Set(bool value, Args args)
{
Image component = this.m_Image.Get<Image>(args);
if (component != null) component.fillClockwise = (bool) value;
}
public override string ToString()
{
return $"{this.m_Image} Fill Clockwise";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}