试图在unity上使用Resources.Load(),我得到一个错误CS0234

时间:2015-06-28 04:30:33

标签: c# unity3d

Assets / Resources / Game / Game.cs(15,53):错误CS0234:类型或命名空间名称Load' does not exist in the namespace资源'。你错过了装配参考吗?

using UnityEngine;
using System.Collections;

using InControl;

public class Game : MonoBehaviour {

private float _originalTimeScale;
private float _slowMoTimeScale;  //slow motion time scale
private float _fastMoTimeScale;  //fast motion time scale
private float factor = 4f;      //factor to increase or decrease the timescale by

// Use this for initialization
void Start () {
    GameObject playerPreFab = Resources.Load("Ethan", GameObject);
...

1 个答案:

答案 0 :(得分:1)

您缺少一些Resources.Load语法。它应该是:

memory_limit

在你的情况下。

相关问题