resourceUrl = (value == null) ? "" : value;
URL = resourceUrl;
isMinMaxFrameSet = minMaxSetTypes.NotSetByUser;
- totalFrameNum = base.TotalFrame;
NUILog.Debug($" [{GetId()}] resourceUrl={resourceUrl}) ]AnimatedVectorImageView END]");
}
get => resourceUrl;
get => totalFrameNum;
}
+ private int totalFrameNum
+ {
+ get => base.TotalFrame;
+ }
+
/// <summary>
/// CurrentFrame of animation.
/// </summary>
{
value = 0;
}
- else if (value >= totalFrameNum)
- {
- value = totalFrameNum - 1;
- }
innerCurrentFrame = value;
AnimationState = AnimationStates.Paused;
- base.SetMinMaxFrame(0, totalFrameNum - 1);
base.CurrentFrame = innerCurrentFrame;
NUILog.Debug($" [{GetId()}] innerCurrentFrame={innerCurrentFrame}) ]AnimatedVectorImageView END]");
maximumFrame = (maxFrame) > 0 ? maxFrame : 0;
isMinMaxFrameSet = minMaxSetTypes.SetByMinAndMaxFrameMethod;
- if (minimumFrame >= totalFrameNum)
- {
- minimumFrame = totalFrameNum - 1;
- }
-
- if (maximumFrame >= totalFrameNum)
- {
- maximumFrame = totalFrameNum - 1;
- }
-
if (minimumFrame > maximumFrame)
{
+ NUILog.Debug($" [{GetId()}] minimumFrame:{minimumFrame} > maximumFrame:{maximumFrame}) ]AnimatedVectorImageView END]");
return;
}
#region Private
private string resourceUrl = null;
private int repeatCnt = 0;
- private int totalFrameNum = 0;
private RepeatModes repeatMode = RepeatModes.Restart;
private int minimumFrame = -1, maximumFrame = -1;
private minMaxSetTypes isMinMaxFrameSet = minMaxSetTypes.NotSetByUser;
[EditorBrowsable(EditorBrowsableState.Never)]
protected internal bool IsDisposeQueued => isDisposeQueued;
- [Conditional("NUI_DEBUG_ON")]
+ [Conditional("NUI_DISPOSE_DEBUG_ON")]
private void disposeDebuggingCtor()
{
DebugFileLogging.Instance.WriteLog($"type:{GetType()} copyNativeHandle:{swigCPtrCopy.Handle.ToString("X8")}");
}
}
- [Conditional("NUI_DEBUG_ON")]
+ [Conditional("NUI_DISPOSE_DEBUG_ON")]
private void disposeDebuggingDispose(DisposeTypes type)
{
DebugFileLogging.Instance.WriteLog($"swigCMemOwn:{swigCMemOwn} type:{GetType()} copyNativeHandle:{swigCPtrCopy.Handle.ToString("X8")} HasBody:{HasBody()}");