示例#1
0
        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);
        }
示例#2
0
 public ImageSpriteAssignment(StandaloneSprite changeable, ImageResource resource, SimpleTextureImportSettings textureSettings) : base(changeable)
 {
     this.resource        = resource;
     this.textureSettings = textureSettings;
 }