Exemple #1
0
 public ImportExportScreen(EmbodyContext context, IEmbody embody, IWorldScaleModule worldScale, ISnugModule snug)
     : base(context)
 {
     _embody     = embody;
     _worldScale = worldScale;
     _snug       = snug;
 }
    public EmbodyContext(MVRScript plugin, IEmbody embody)
    {
        this.plugin    = plugin;
        this.embody    = embody;
        containingAtom = plugin.containingAtom;

        leftHandToggle = new JSONStorableBool("Left Hand Enabled", true, val =>
        {
            trackers.leftHandMotionControl.enabled = val;
            trackers.RefreshHands();
            embody.Refresh();
        })
        {
            isStorable = false
        };
        rightHandToggle = new JSONStorableBool("Right Hand Enabled", true, val =>
        {
            trackers.rightHandMotionControl.enabled = val;
            trackers.RefreshHands();
            embody.Refresh();
        })
        {
            isStorable = false
        };
    }
Exemple #3
0
 public EmbodyContext(MVRScript plugin, IEmbody embody)
 {
     this.plugin    = plugin;
     this.embody    = embody;
     containingAtom = plugin.containingAtom;
     if (containingAtom.type == "Person")
     {
         bones = containingAtom.transform.Find("rescale2").GetComponentsInChildren <DAZBone>();
     }
 }
 public EmbodyContext(MVRScript plugin, IEmbody embody)
 {
     this.plugin = plugin;
     this.embody = embody;
 }
Exemple #5
0
 public ActivateWithoutSnugStep(IEmbody embody, ISnugModule snug)
 {
     _embody = embody;
     _snug   = snug;
 }
Exemple #6
0
 public ActivateStep(IEmbody embody)
 {
     _embody = embody;
 }