Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Load Namespaces. #15

Closed
ShivanshuKantPrasad opened this issue Aug 18, 2018 · 2 comments
Closed

Auto-Load Namespaces. #15

ShivanshuKantPrasad opened this issue Aug 18, 2018 · 2 comments
Assignees

Comments

@ShivanshuKantPrasad
Copy link

I find myself loading a few namespaces always. Is there a way to specify(maybe through scripting) a list of namespaces to auto load.

@hecomi hecomi self-assigned this Nov 16, 2018
@Kabie
Copy link

Kabie commented Mar 3, 2019

I'm using a simple script to achieve this.

using UnityEngine;
using uREPL;

public class ReplPreload : MonoBehaviour
{
    public string[] Commands;

    void Start()
    {
        foreach (var command in Commands)
        {
            Evaluator.Evaluate(command);
        }
    }
}

hecomi added a commit that referenced this issue Mar 30, 2019
@hecomi
Copy link
Owner

hecomi commented Mar 30, 2019

Sorry for my late work..., but I've added Pre-Load Command text area to uREPL.Main component from v0.6.0. The code written here is run just after starting scene like @Kabie wrote above.
https://github.com/hecomi/uREPL/releases/tag/v0.6.0

Please write here namespaces which you want to use like below:

using UnityEngine.UI;
using UnityEngine.XR;

@hecomi hecomi closed this as completed Mar 30, 2019
hecomi added a commit that referenced this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants