Forum Libraries, Components, and Plugins

Sprite not visible.

CCSprite logo;

        public SplashLayer() : base(CCColor4B.Red)
        {
            logo = new CCSprite("Images/image.png");
            AddChild(logo);
        }

protected override void AddedToScene()
        {
            base.AddedToScene();

            var bounds = VisibleBoundsWorldspace;

            logo.Position = bounds.Center;
        }

Xamarin.Forms Cocos# project and the directory structure is:

formsportable1.Droid\Assets\Content\Images\Hd\image.png
formsportable1.Droid\Assets\Content\Images\Ld\image.png

But sprite is not rendered on screen. Can someone explain why?
Thanks.

Best Answer

Answers

  • hgokturkhgokturk TRMember ✭✭

    Yes, no exception in this case is strange. But maybe that's the way it is :expressionless:
    Thanks.

Sign In or Register to comment.