Дополнен 1 месяц назад
Ещё есть приписка
Duplicated Functions:
Image.OnEnable ( )
Image.OnDisable ( )
Image.OnValidate ( )
Image.OnCanvasHierarchyChanged ( )
Image.OnTransformParentChanged ( )
Image.get_material ( )
Image.set_material ( Material )
Image.get_mainTexture ( )
Image.OnEnable ( )
Image.OnDisable ( )
Image.OnCanvasHierarchyChanged ( )
Image.UpdateMaterial ( )
Image.OnDidApplyAnimationProperties ( )
Image.SetNativeSize ( )
Image.OnValidate ( )
Image.OnEnable ( )
Image.OnDisable ( )
Image.OnDestroy ( )
Image.OnValidate ( )
Image.Reset ( )
Image.OnRectTransformDimensionsChange ( )
Image.OnBeforeTransformParentChanged ( )
Image.OnTransformParentChanged ( )
Image.OnDidApplyAnimationProperties ( )
Image.OnCanvasHierarchyChanged ( )
Some functions have the same name across several Monobehaviour components and may not work as intended if used with Animation Events!
Код накидывается на кнопку,что бы при нажатии сцена переключались
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using System.Collections.Generic;
public class MainMenu : MonoBehaviour
{
public int sceneNumber;
public void Transition()
{
SceneManager.LoadScene(sceneNumber);
}
}
Не судите строго,я чайник