本文整理汇总了C#中UnityEngine.UI.RawImage.CrossFadeAlpha方法的典型用法代码示例。如果您正苦于以下问题:C# RawImage.CrossFadeAlpha方法的具体用法?C# RawImage.CrossFadeAlpha怎么用?C# RawImage.CrossFadeAlpha使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnityEngine.UI.RawImage
的用法示例。
在下文中一共展示了RawImage.CrossFadeAlpha方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start()
{
rawimage = image.GetComponent<RawImage>();
rawimage.CrossFadeAlpha(0.0F,0, false);
rawimage.CrossFadeAlpha(1F,splash_timer, false);
StartCoroutine("Timer");
}
示例2: Start
void Start()
{
// get a reference to the inner RawImage component and its transform
rawImageComp = GetComponentInChildren<UnityEngine.UI.RawImage>();
// make it invisible (no image)
rawImageComp.enabled = false;
rawImageComp.CrossFadeAlpha(0f, 0, false);
}
示例3: OnLevelWasLoaded
// Populate EventManager data upon loading a scene
void OnLevelWasLoaded()
{
if (currentLevel == "Coast")
{
currentMemory = 8;
}
playerCrouch = false;
fadeToBlack = GameObject.Find("FadeToBlack").GetComponent<RawImage>();
StartCoroutine("FadeInCoRoutine");
Cursor.visible = false;
memoryPlaying = false;
fadeToBlack.CrossFadeAlpha(0, 3, false);
controlsDisabled = false;
InitialiseValuesLevelLoad();
Invoke("MovePlayer", 0.05f); // This delay is required so the checkpoint data can be fetched first
}