public override void Apply() { if (!this.changeable) { return; } StandaloneSprite changeable = this.changeable as StandaloneSprite; changeable.Apply(this.sprite); this.resource.RenameAsset(this.textureSettings.name); this.resource.ApplyTextureImportSettings(this.textureSettings); }
public ImageSpriteAssignment(StandaloneSprite changeable, ImageResource resource, SimpleTextureImportSettings textureSettings) : base(changeable) { this.resource = resource; this.textureSettings = textureSettings; }