public string trace(int indent){
string s = Utils.RepeatString (indent) + " ID=" + characterId + ", " +
"hasCharacter=" + hasCharacter + ", "+
"name=" + instanceName + ", " +
"depth=" + depth + ", " +
"isHidden=" + isHidden + ", " +
"hasMatrix=" + hasMatrix + ", ";
if (hasMatrix) {
s += "position=(" + position + ")," +
"rotation=" + rotation +"," +
"scale=(" + scaleX + "," + scaleY + "),";
}
s += "hasColorTransform=" + hasColorTransform;
if (hasColorTransform) {
s += "," + "colorTransform=" + colorTransform;
}
return s;
}
}