Forum Libraries, Components, and Plugins

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.