1. Using lua, I can create a box around objects with ddraw, but the color is always white/greyish. Using UnityEngine.Color.red for the color does not work and I have tried many variations. How is the color changed in lua? Thanks for any help.
     
  2. Calytic

    Calytic Community Admin Community Mod

    I don't have any reference code for accessing structs, but you might try instantiating a new Color object

    Something like the code below. That code is untested but in any case the constructor arguments for a Color object are Red, Green, Blue, and Alpha. All of the constructor arguments are float values between 0 and 1

    Code:
    new( UnityEngine.Color._type, util.TableToArray { R, G, B } )new( UnityEngine.Color._type, util.TableToArray { 0.5, 0.2, 1 } )
     
  3. Thanks for the help. Unfortunately I have not had any luck with this option.