コード例 #1
0
 public ImportExportScreen(EmbodyContext context, IEmbody embody, IWorldScaleModule worldScale, ISnugModule snug)
     : base(context)
 {
     _embody     = embody;
     _worldScale = worldScale;
     _snug       = snug;
 }
コード例 #2
0
    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
        };
    }
コード例 #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>();
     }
 }
コード例 #4
0
 public EmbodyContext(MVRScript plugin, IEmbody embody)
 {
     this.plugin = plugin;
     this.embody = embody;
 }
コード例 #5
0
 public ActivateWithoutSnugStep(IEmbody embody, ISnugModule snug)
 {
     _embody = embody;
     _snug   = snug;
 }
コード例 #6
0
 public ActivateStep(IEmbody embody)
 {
     _embody = embody;
 }