void OnWizardCreate() { var property = icon.CreateChild <MadLevelProperty>(name); property.transform.localPosition = Vector3.zero; property.transform.localScale = Vector3.one; }
void OnWizardCreate() { var property = icon.CreateChild <MadLevelProperty>(name); var text = property.gameObject.AddComponent <MadText>(); property.transform.localPosition = Vector3.zero; property.transform.localScale = Vector3.one; text.font = font; text.text = "Sample Text"; text.guiDepth = icon.guiDepth + 1; }
void OnWizardCreate() { var property = icon.CreateChild <MadLevelProperty>(name); var sprite = property.gameObject.AddComponent <MadSprite>(); property.transform.localPosition = Vector3.zero; property.transform.localScale = Vector3.one; sprite.texture = texture; sprite.ResizeToTexture(); sprite.guiDepth = icon.guiDepth + 1; }