spacecool edit for mac版edit

Version: 2018.1 (switch to
or )LanguageEnglishC#JSScript languageSelect your preferred scripting language. All code snippets will be displayed in this language.Other VersionsSuccess!Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Submission failedFor some reason your suggested change could not be submitted. Please &a&try again&/a& in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Your nameYour emailSuggestion*Submit suggestionpublic static method Space():
public static void Space();
DescriptionMake a small space between the previous control and the following.
Custom inspector that shows the X,Y,Z,W quaternion components of a transform.
// Create a custom transform inspector that shows the X,Y,Z,W quaternion components
// instead of the rotation angles.
class InspectorTitlebarUsage extends
var fold : boolean =
var rotationComponents : ;
var selectedTransform : ;
@("Examples/Inspector Titlebar")
static function Init() {
var window = GetWindow(InspectorTitlebarUsage);
window.Show();
function OnGUI() {
selectedTransform = Selection.activeGameObject.
fold = (fold, selectedTransform);
if(fold) {
selectedTransform.position =
("Position", selectedTransform.position);
rotationComponents =
("Detailed Rotation",
QuaternionToVector4(selectedTransform.localRotation));
selectedTransform.localScale =
("Scale", selectedTransform.localScale);
selectedTransform.localRotation = ConvertToQuaternion(rotationComponents);
function ConvertToQuaternion(v4 : ) {
return (v4.x, v4.y, v4.z, v4.w);
function QuaternionToVector4(q : ) {
return (q.x, q.y, q.z, q.w);
function OnInspectorUpdate() {
this.Repaint();
// Create a custom transform inspector that shows the X,Y,Z,W quaternion components
// instead of the rotation angles.
using UnityEpublic class EditorGUILayoutSpaceField :
bool fold =
[("Examples/ between controls")]
static void Init()
window = GetWindow(typeof(EditorGUILayoutSpaceField));
window.Show();
void OnGUI()
selectedTransform = Selection.activeGameObject.
fold = (fold, selectedTransform);
selectedTransform.position =
("Position", selectedTransform.position);
rotationComponents =
("Detailed Rotation",
QuaternionToVector4(selectedTransform.localRotation));
selectedTransform.localScale =
("Scale", selectedTransform.localScale);
selectedTransform.localRotation = ConvertToQuaternion(rotationComponents);
ConvertToQuaternion( v4)
return new (v4.x, v4.y, v4.z, v4.w);
QuaternionToVector4( q)
return new (q.x, q.y, q.z, q.w);
void OnInspectorUpdate()
this.Repaint();
Did you find this page useful? Please give it a rating:下次自動登錄
現在的位置:
& 綜合 & 正文
IWorkspaceEdit Example
//IWorkspaceEdit Example
//e.g., nameOfFeatureClass = "States"
//on ArcSDE use ISqlSyntax::QualifyTableName for fully qualified table names.
public void IWorkspaceEdit_Example(IWorkspace workspace, string nameOfFeatureClass)
IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)
IFeatureClass featureClass = featureWorkspace.OpenFeatureClass(nameOfFeatureClass);
IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)
//start editing with undo redo functionality
workspaceEdit.StartEditing(true);
workspaceEdit.StartEditOperation();
IFeature feature = featureClass.GetFeature(1);
feature.Delete();
workspaceEdit.StopEditOperation();
Console.WriteLine("Would you like to undo your operation? Y or N");
string response = Console.ReadLine();
if(response.ToUpper() == "Y")
workspaceEdit.UndoEditOperation();
bool hasEdits =
workspaceEdit.HasEdits(ref hasEdits);
if (hasEdits)
Console.WriteLine("Would you like to save your edits? Y or N");
response = Console.ReadLine();
if (response.ToUpper() == "Y")
workspaceEdit.StopEditing(true);
workspaceEdit.StopEditing(false);
【上篇】【下篇】ActiveX中Edit无法响应Backspace键
[问题点数:20分,结帖人cnyu]
本版专家分:292
CSDN今日推荐
本版专家分:43739
2011年1月 荣获微软MVP称号
2009年8月 VC/MFC大版内专家分月排行榜第一
2010年7月 VC/MFC大版内专家分月排行榜第二
本版专家分:292
本版专家分:292
本版专家分:292
本版专家分:4
本版专家分:0
本版专家分:0
匿名用户不能发表回复!|
CSDN今日推荐Astronomers used the Atacama Large Millimeter/submillimeter Array (ALMA) to discover the tale-telling signs of planets in the young, likely planet-forming disk around the star MWC 758.
Doctors learn a lot about their patients' health by taking their temperature. An elevated temperature, or fever, can be a sign of illness.
Today - Gravitational References for Sensitomotor Performance (GRASP): The crew reconfigured the GRASP equipment from the seated configuration to the quasi-free floating configuration this morning.
A large multidisciplinary team of scientists, equipped with advanced underwater robotics and an array of analytical instrumentation, will set sail for the northeastern Pacific Ocean this August.
Scientists have been able to prove the existence of small black holes and those that are super-massive but the existence of an elusive type of black hole, known as intermediate-mass black holes (IMBHs) is hotly debated.
In early Martian summer, at the time NASA's Mars Reconnaissance Orbiter acquired this image, the dunes are almost free of their seasonal ice cover.

我要回帖

更多关于 textedit for mac 的文章

 

随机推荐