setOpacity() public method

public setOpacity ( float value ) : void
value float
return void
コード例 #1
0
 public void onEditorShipModified(ShipConstruct ship)
 {
     if (!HighLogic.LoadedSceneIsEditor)
     {
         return;
     }
     fairingBase.setOpacity(editorTransparency ? 0.25f : 1);
 }
コード例 #2
0
ファイル: FairingData.cs プロジェクト: lynwoodm/SSTULabs
 public void createFairing(Material material, float editorOpacity)
 {
     fairingBase.generateColliders = this.generateColliders;
     fairingBase.facesPerCollider  = this.facesPerCollider;
     fairingBase.clearProfile();
     fairingBase.setNumberOfPanels(numOfSections, false);
     fairingBase.addRing(bottomY, bottomRadius);
     fairingBase.addRing(topY, topRadius);
     fairingBase.generateFairing();
     fairingBase.setMaterial(material);
     fairingBase.setOpacity(HighLogic.LoadedSceneIsEditor ? editorOpacity : 1.0f);
 }