Initial Unity project commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Michsky.MUIP
|
||||
{
|
||||
public class MUIPInternalTools : MonoBehaviour
|
||||
{
|
||||
public static string modalWindowStateName = "Fade-out";
|
||||
public static string windowManagerStateName = "WM Window Out";
|
||||
|
||||
public static float GetAnimatorClipLength(Animator _animator, string _clipName)
|
||||
{
|
||||
float _lengthValue = -1;
|
||||
RuntimeAnimatorController _rac = _animator.runtimeAnimatorController;
|
||||
|
||||
for (int i = 0; i < _rac.animationClips.Length; i++)
|
||||
{
|
||||
if (_rac.animationClips[i].name == _clipName)
|
||||
{
|
||||
_lengthValue = _rac.animationClips[i].length;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return _lengthValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 95af5c5e221987642aecaf2d59a3469a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 201717
|
||||
packageName: Modern UI Pack
|
||||
packageVersion: 5.5.28
|
||||
assetPath: Assets/Modern UI Pack/Scripts/Core/MUIPInternalTools.cs
|
||||
uploadId: 778406
|
||||
Reference in New Issue
Block a user