1. i bulding a map have add a "Canvas/Text" component.
    this code:
    Code:
    using UnityEngine.UI;Text text=GameObject.Find("Canvas/Text").GetComponent<Text>();
    text="just do it!";
    print error:The type or namespace name `Text' could not be found. Are you missing an assembly reference?

    how can working?Please help!
     
  2. Wulf

    Wulf Community Admin

    If you are trying to modify the client's UI, it's not possible via the server as there is nothing to send it to the client.
     
  3. this UI not in client's, is in map on the server
    aaaa.png
    bbb.png
     
  4. Wulf

    Wulf Community Admin

    Ah, had no idea that was possible. Perhaps you are missing System.Text? Visual Studio 2015 should show you.
     
  5. the Text is UnityEngine component,need using UnityEngine.UI
    look this:
    aaaa.png
    the coke working in VS2015 and Unity3d,not working in Oxide. i don't know why:(
    bbb.png
     
  6. Wulf

    Wulf Community Admin

    Most likely the text is too generic, else you are missing the reference to UnityEngine.UI. Try adding // Reference: UnityEngine.UI at the top of the plugin.
     
  7. how do it?
    can u send post example here.Please Help!
     
  8. Wulf

    Wulf Community Admin

    Code:
    // Reference: UnityEngine.UI
    using System;
    using UnityEngine;namespace Oxide.Plugins
    {
     
  9. aaaa.png
    not working!
     
  10. Wulf

    Wulf Community Admin

    Where is the // Reference? I don't see it in your code.
     
  11. aaaa.png
    code make working,but Run error :(
    [DOUBLEPOST=1462240121,1462207947][/DOUBLEPOST]
    been tested,the value change is in server,client not updata.
     
  12. Wulf

    Wulf Community Admin

    It fixed the issue you were having, you have a new one now with something being null. I know what it would be, never messed with UnityEngine UI.