//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework; using UnityEngine; namespace UnityGameFramework.Runtime { /// /// UnityEngine.Texture 变量类。 /// public sealed class VarTexture : Variable { /// /// 初始化 UnityEngine.Texture 变量类的新实例。 /// public VarTexture() { } /// /// 从 UnityEngine.Texture 到 UnityEngine.Texture 变量类的隐式转换。 /// /// 值。 public static implicit operator VarTexture(Texture value) { VarTexture varValue = ReferencePool.Acquire(); varValue.Value = value; return varValue; } /// /// 从 UnityEngine.Texture 变量类到 UnityEngine.Texture 的隐式转换。 /// /// 值。 public static implicit operator Texture(VarTexture value) { return value.Value; } } }